Oct 8, 2013

[android] How to extract list of all apps installed on the device.

If you want to make a launcher, this might be helpful. 
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); 
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); 
List<ResolveInfo> pkgAppList = getPackageManager().queryIntentActivities(mainIntent, 0);       

Then you have your list in "pkgAppList". 

No comments:

Post a Comment