PackageManager pm = this.getPackageManager();
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> list = pm.queryIntentActivities(mainIntent, 0);
for(ResolveInfo info: list)
{
Log.w("App browser", info.activityInfo.applicationInfo.loadLabel( pm ).toString());
}
Source: Finding the name of installed applications - Android Developers Google Groups.
No comments:
Post a Comment