0

I want to know how can i make my app as a launcher to start other apps.(Not written by me)

For example i want to open games like

1) Angry Birds 2) Basketball shoot

etc

from my app on click of button for each game. How can i do that?

yashbinani
  • 387
  • 2
  • 10
  • 24

2 Answers2

3

Find out thoose games package, and start them via an Intent. Like this:

String packageName = "com.rovio.angrybirds";
Intent i = new Intent(Intent.ACTION_MAIN);
PackageManager manager = getPackageManager();
i = manager.getLaunchIntentForPackage(packageName);
startActivity(i);
rfsbraz
  • 2,101
  • 1
  • 18
  • 26
2

You should use intent. Please look at the following link. It answers your question in detailed way. Open another application from your own (intent)

Community
  • 1
  • 1
Tuna Karakasoglu
  • 1,262
  • 9
  • 28