Getting details of all the installed apps on an Android device is incredibly simple – here’s a utility method which I hope will prove useful.
private List<ApplicationInfo> getListOfApps() {
// http://developer.android.com/reference/android/content/pm/PackageManager.html
// Class for retrieving various kinds of information related to the application
// packages that are currently installed on the device.
PackageManager packageManager = getPackageManager();
// Get a list of the installed applications
List<ApplicationInfo> listOfApps = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);
return listOfApps;
}