Pro release is out however getting a list of Intents with ACTION_MAIN is not that fast and hangs on phones with a lot of apps installed. I will probably try to do some sort of progress dialog in future releases. In the meanwhile if someone find a better / faster way to do following procedure let me know…
|
1 2 3 4 5 6 7 8 9 10 |
final Intent mainIntent = new Intent(Intent.ACTION_MAIN,null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List<ResolveInfo> pkgAppsList = pm.queryIntentActivities(mainIntent, 0); for (ResolveInfo ri : pkgAppsList) { outNames.add(ri.loadLabel(pm)); outValues.add((new ComponentName( ri.activityInfo.packageName, ri.activityInfo.name)).flattenToString()); } |
