Current Android Release version:
Version Code: Pie
Version: 9
API level: 28

How to start activity from another application in Android

Below is the code to launch activity from another application.

Intent intent = new Intent();
intent.setComponent(new ComponentName("com.example", "com.example.MyActivity"));
startActivity(intent);

No comments:

Post a Comment