Reputation: 387
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?
Upvotes: 0
Views: 250
Reputation: 2111
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);
Upvotes: 3