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 7711223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:19:16+00:00 2026-06-01T01:19:16+00:00

I keep getting ActivityNotFoundException: Unable to find explicit activity class … when using Eclipse’s

  • 0

I keep getting “ActivityNotFoundException: Unable to find explicit activity class … ” when using Eclipse’s emulator to call the activity of another application from an application. Perhaps the problem maybe related to I am not able to download to/find both applications at the same time when I click on “Manage Applications” in Settings. This is the first project I need to call the activity of another application. But I am not sure the code is correct either. Please help me determine if there are errors in the code snippets I present below. It is hinted that I can set the action field of the intent to achieve the objective but have not found learning material for this. I learned about using the setComponent method in the calling app and to add android:export to the called activity’s AndroidManifest.xml. Thanks in advance!

Calling app’s relevant source code:

Intent intent = new Intent();                
intent.setComponent(new ComponentName("com.MyPackage", om.MyPackage.Activity1));
startActivity(intent);

Calling app’s relevant AndroidManifest.xml :

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".MainActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity android:name=".Activity1">
        <intent-filter>
            <action android:name="com.MyPackage.Activity1" />
            <category android:name="android.intent.category.DEFAULT" />               
        </intent-filter>
    </activity>

</application>

Relevant code of AndroidManifest.xml of the activity of another application

<activity android:name=".Activity1" android:exported = "true">          
        <intent-filter>
            <action android:name="com.MyPackage.Activity1" />
            <category android:name="android.intent.category.DEFAULT" />             
        </intent-filter>
</activity>
  • 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-06-01T01:19:18+00:00Added an answer on June 1, 2026 at 1:19 am

    Firstly point out that you’re trying to start Activity in Application2 from Activity in Application1

    • You have to give them separate namespaces
      • both applications now have com.MyPackage.* prefix
    • OR use names Activity1 and Activity2

    So you will have

    com.MyPackage1.Activity1
    // and
    com.MyPackage2.Activity1
    

    Then you can use this code, to start Activity1 in MyPackage2 from MyPackage1.

    // in file com.MyPackage1.Activity1
    Intent intent = new Intent();
    intent.setComponent(new ComponentName("com.MyPackage2", "com.MyPackage2.Activity1"));
    startActivity(intent);
    

    And your AndroidManifest.xml files should look like this:

    first

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name="com.MyPackage1.Activity1"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    
    </application>
    

    second

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name="com.MyPackage2.Activity1"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    
    </application>
    

    see related SO question:
    How to start activity in another application?

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

Sidebar

Related Questions

I keep getting some weird error in Processing, using the following tiny piece of
I keep getting an error: invaled syntax for 1.add_xpath('tagLine', '//p[@class=tagline]/text()') and I cannot seem
I keep getting this whenever I run the below code: Fatal error: Call to
Keep getting these errors while trying to compile an c++ class program. testStock.cpp: In
I keep getting a 500 Internal Server Error when using the following Rewrite rule
I keep getting a Compilation Error and can't find matching overloaded method. I've tried
Keep getting this error after inserting a subdatasheet into a query and trying to
Keep getting the error Arguments are not sufficiently instantiated for the multiplication by addition
I keep getting the following error: 'function' object has no attribute 'objects' for Like.
I keep getting this error: System.Runtime.InteropServices.COMException was thrown on C:\Users\---\documents\visual studio 2010\Projects\TBrowser\TBrowser\TBrowserWindow.xaml: Error HRESULT

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.