View Full Version : package and class
probbiethe1
03-22-2011, 12:03 AM
how do you find the package name and class name of an app? any help would be great thanks
alostpacket
03-22-2011, 12:32 AM
PackageManager pkgMgr = getPackageManager();
List< ApplicationInfo > list = pkgMgr.getInstalledApplications(0);
int len = list.size();
for (int index=0; index < len; index++)
{
ApplicationInfo content = list.get( index );
String pName = content.packageName;
String appLabel = pkgMgr.getApplicationLabel( content );
Drawable icon = pkgMgr.getApplicationIcon( content );
}
probbiethe1
03-22-2011, 06:03 PM
thanks for the reply
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.