Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6677851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:10:22+00:00 2026-05-26T04:10:22+00:00

[Update:] i know the problem… but need help to resolve this. The issue is

  • 0

[Update:]
i know the problem… but need help to resolve this. The issue is the CONTENT_URI is not mapping to the mimetype vnd.android.cursor.dir/vnd.example.manager.

i create the Intent with null, and in my intentfiter i have data segment. so i guess it is not matching. So when i pass null in data, everything is good and charming!!.,
But i need to pass the content_URI and translate it into mimeType. i have a getType but i guess it is not resolving correctly. Could someone please help me out.

[Original Post]

I’m trying to debug this section with intents in my application and i need help to proceed further.

I have the main activity and some button. On clicking the button, i would fire an intent for a different activity and upon StartActivity i get an ActivityNotFoundException.

My guess is due to the data mimeType that i have passed to the activity. My Intent filter is Below

<intent-filter>
    <action android:name="android.intent.action.INSERT" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="vnd.android.cursor.dir/vnd.example.manager" />
</intent-filter>

This manager is initially empty and there is no table on the first launch of the activity.

In my Caller activity’s onCreate() i do the following

Caller Activity – First entry point for the app

public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.dashboard);       
    someButton.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {
            Intent spawnEmptyIntent = new Intent(Intent.ACTION_INSERT, getIntent().getData());

            if(getIntent().getData() == null) {
                getIntent().setData(ManagerTableDefaults.CONTENT_URI);
            }

            Log.w(TAG, "Intent data string is " + getIntent().getDataString()); --- This is null for some reason!! i don't know why!!... it should have been set earlier right??
            startActivity(spawnEmptyListIntent); // New activity is not launched... Exception thrown
        }
    });

}

Error Log is

10-14 11:21:37.002: WARN/DashboardActivity(8313): Intent data string is null
10-14 11:21:37.012: INFO/ActivityManager(1643): Starting: Intent { act=android.intent.action.INSERT dat=content://com.example.android.provider.ss/manager } from pid 8313
10-14 11:21:37.022: ERROR/AndroidRuntime(8313): FATAL EXCEPTION: main
10-14 11:21:37.022: ERROR/AndroidRuntime(8313): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.INSERT dat=content://com.mvl.android.provider.nq/listmanager }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:10:23+00:00Added an answer on May 26, 2026 at 4:10 am

    You aren’t setting the data on your spawnEmptyListIntent if getIntent().getData() is null. I suspect your intent is to set the ManagerTableDefaults.CONTENT_URI as the data URI for your spawnEmptyListIntent

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I can update a single record like this - but then how
I don't know if calling this nesting is correct or not? But I know
I know that update panels help rendering part of a page, but what I'm
UPDATE: I know I can use <ol> directky in the output but I remember
Update: this question, including the title, was rephrased, see history for details I know
This little bit of code will help me describe my problem: public class Car
Having a problem with this query, anyone know the problem? INSERT INTO options (grouptogether)
UPDATE 1: I can get around the problem with a try/catch, but I would
Not solved but I think the problem is something else and not the css
This question is related to my previous question but you dont need to read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.