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);
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.example", "com.example.MyActivity"));
startActivity(intent);
No comments:
Post a Comment