2012-03-29 4 views

Antwort

2

dies wird Ihnen zeigen, was auf dem Gerät ist:

PackageManager pm = getPackageManager(); 
Intent intent = new Intent().setAction(Intent.ACTION_MAIN).addCategory(
    "android.intent.category.LAUNCHER"); 
List<ResolveInfo> rilist = pm.queryIntentActivities(intent, 0); 
for (ResolveInfo ri : rilist) 
{ 
    Log.i("TAG", "package: " + ri.activityInfo.packageName + ", class: " 
     + ri.activityInfo.name); 
    AppInfo info = new AppInfo(ri.activityInfo.packageName, 
     ri.activityInfo.name, ri.loadIcon(pm)); 
    appsMap.put(ri.activityInfo.packageName, info); 
} 
+0

Thank you Ich werde versuchen, –