top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to launch another application from my application in android

+2 votes

I want to open another application from my application. I know I should use Intent for that, but I am not sure how to use that.

posted Jul 22, 2016 by Vijay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
Best answer

You are right! Intent is used to launch applications. Note: you should know the ID of the application you wish to open.

Intent appIntent= getPackageManager().getLaunchIntentForPackage("<YOUR_PAKCAGE_NAME | APPLICATION ID>"); // Application id looks like this - com.example.yourapplication
// Check if the app exists with provided ID by checking for null
if (appIntent != null) {

Hope this helps!

answer Jul 22, 2016 by Vinod Kumar K V
Similar Questions
+2 votes

I am receiving ANR notification sometimes in my application. The code is working fine though, how can I prevent showing this message. Please help.

+2 votes

Hi I want to record my screen and save as video file in Android. Note: I don't need the code to work in old versions (I need for Jelly bean and later versions) of android.

Thanks in advance!