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

  • Home
  • SEARCH
  • 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 1035667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:34:39+00:00 2026-05-16T14:34:39+00:00

I am programming an app that eventually will have several Activities. Right now, however,

  • 0

I am programming an app that eventually will have several Activities. Right now, however, I got stuck trying to start the second activity from the first one. For some odd reason I am always only getting an ActivityNotFoundException.

The code that tries to start the second activity reads:

    ...
    Intent intent = new Intent(Intent.ACTION_INSERT);
     /* intent.addCategory("foo"); */
    Log.v(TAG, "starting activity: " + intent);             
    startActivity(intent);
    ...

The Intent.ACTION_INSERT string constant is “android.intent.action.INSERT”.

The corresponding fragment in the AndroidManifest.xml reads:

    ...
    <activity 
        android:label="@string/item_details" 
        android:name="ItemDetails"
        android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.INSERT" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="foo" />
        </intent-filter>
    </activity>
    ...

The Activity class “ItemDetails” exists and is in the same package as the “calling” Activity. The Intent names match and according to the Android docs the “android.intent.category.DEFAULT” category should apply to all Intents that have no category set. Still, that Activity is not found. Why?

I also tried to specify a unique category “foo” as shown in the commented line in the code snippet and also added that to the manifest file, but same result…. 🙁

What am I missing? Any hints?

  • 1 1 Answer
  • 2 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-16T14:34:40+00:00Added an answer on May 16, 2026 at 2:34 pm

    The android:name for your Activity should be the full path to the Activity, including the packages. Is that what you have?

    Also, this may not be right for you, but for Activities that are only meant to be called from within your application you can just use an explicit intent:

    Intent intent = new Intent(this, ItemDetails.class);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have decided to start programming some apps for the iPhone that eventually will
I'm programming an app that will have a free version. I have added another
I'm new in Android Programming. I'm trying to write an app that uses USB
Almost every ios app now has something like Feed option. Programming that usually includes
I am programming an app that will store a database locally and would like
I'm programming an app that will be a basic video game, but the keyUp:(NSEvent
I'm currently programming an app that deals with line graphs. I have three dots
I have a problem: I am programming an app that is using a searchBar
I'am begginer in android programming and I'am trying to create app that is logging
I am programming for iPhone, creating an app that shows various locally stored HTML

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.