How to make a button so that when you click it, a transition occurs in the activity of another android application - in net.xxx.yy/net.xxx.yy.Activity1 .

  • @Mgchannel, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Nicolas Chabanovsky

1 answer 1

Try this:

  Intent intent = new Intent(android.content.Intent.ACTION_MAIN); intent.setClassName("net.xxx.yy", "net.xxx.yy.Activity1"); context.startActivity(intent); 

It is possible that you will need to find the right action ( ACTION_MAIN , ACTION_VIEW , etc.).

Threat It would not hurt to question more details. Your application / someone else's. What kind of filter is registered in the manifest, etc.