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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:49:10+00:00 2026-05-31T17:49:10+00:00

Possible Duplicate: Android Launch an application from another application I am having a problem

  • 0

Possible Duplicate:
Android Launch an application from another application

I am having a problem and it is the following one:

I have two applications, and I want to launch one of the activities from one app by the other one……I am gonna give an example:

first app package:

“es.wul4.android.app1”

second app package:

“es.wul4.android.app2”

What I want is to launch the activity whose class is called "Identificar" from the app1

This activity is NOT the main one. I tried by doind that:

Intent intent = getPackageManager().getLaunchIntentForPackage("es.wul4.app2.Identificar");
startActivity(intent);

But what i get doing that is nothing, it tells me that the app doesn´t exists.

If i try doing that:

getPackageManager().getLaunchIntentForPackage("es.wul4.app2");
startActivity(intent);

And it launch one activity, but the main one……..

How can I launch this particular Activity inside the package “es.wul4.app2.Identificar”??

Thank u very much.

  • 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-31T17:49:11+00:00Added an answer on May 31, 2026 at 5:49 pm

    What you need to use are intent-filters. Assume the activity to be launched is in the package launch.me. Inside this applications manifest all the activities (main or otherwise) will be decalred by the <activity> tag.
    Assuming the activity you want to launch is inside the class file Launchme. Then a portion of your manifest will be something like:

    <activity android:name="launch.me.Launchme"
                  android:label="@string/app_name">
    <intent-filter>
                <action android:name="launch.me.action.LAUNCH_IT"/>
                <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>
    </activity>  
    

    Now in the activity from where you want to launch the above activity use:(Note: This activity can be in any package anywhere. You have to make sure that both, the calling and the called packages are available on the device)

    Intent i=new Intent();
    i.setAction("launch.me.action.LAUNCH_IT");
    startActivityForResult(i,0);
    

    You can use other methods for starting the intent other than startActivityForResult, thats upto you.

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

Sidebar

Related Questions

Possible Duplicate: Android Launch an application from another application I want to start Another
Possible Duplicate: Intent to launch the clock application on android I have a widget
Possible Duplicate: How to pass object from one activity to another in Android While
Possible Duplicate: Android: ProgressDialog.show() crashes with getApplicationContext I want to have a progress dialog
Possible Duplicate: Android create shortcuts on the home screen I am having one TextView
Possible Duplicate: Android - Application (apk) Maximum size I want to install an APK
Possible Duplicate: accelerometer in Android emulator I have an application that plays music when
Possible Duplicate: Standard Android Button with a different color I have 1 problem -
Possible Duplicate: Developing for Android in Eclipse: R.java not generating I have a one
Possible Duplicate: How do I save an Android application's state? I have an Android

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.