I asked a similar question to this earlier this week but I'm still not understanding how to get a list of all installed applications and then pick one to run.
Intent intent = new Intent(ACTION_MAIN);
Following is the code to get the list of activities/applications installed on Android :
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List pkgAppsList = context.getPackageManager().queryIntentActivities( mainIntent, 0);
You will get all the necessary data in the ResolveInfo to start a application. You can check ResolveInfo javadoc here.