1

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);
Pac0
  • 21,465
  • 8
  • 65
  • 74
Shubham Gupta
  • 43
  • 1
  • 7
  • have you searched for this?, try this https://stackoverflow.com/questions/18902939/call-activity-in-another-package – Lalit Verma Nov 28 '17 at 04:00

1 Answers1

0

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

Raja
  • 2,775
  • 2
  • 19
  • 31