I want to open a specific activity of app2 from app1. How do I do that?
Tried: I am able to open app2 using:
Intent paypalIntent = getPackageManager().getLaunchIntentForPackage("package.name);
I want to open a specific activity of app2 from app1. How do I do that?
Tried: I am able to open app2 using:
Intent paypalIntent = getPackageManager().getLaunchIntentForPackage("package.name);
You have to try like this
Intent launchIntent = new Intent(Intent.ACTION_MAIN);
launchIntent.addCategory(Intent.CATEGORY_LAUNCHER);
ComponentName cp = new ComponentName("Your App Packge Name that Contains Register Activity", "Register Activity Name");
launchIntent.setComponent(cp);
startActivity(launchIntent);
for more info: Android : Call activity of another application