Tech tip of this week

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