Get Installed Applications List in Android Example
Here you will find the simplest way to get installed applications list in Android Phones. We can retrieve all installed applications list using PackageManager and ResolveInfo in Android. ResolveInfo and PackageManager are Android components which provides us all installed applications details as per our requirement.
In this tutorial, You will find below details for each of your installed application in your Android devices.
1. Get Application name.
2. Get Application Package Name.
3. Get Application Icon etc.
Code Snippet for getting installed applications in Android.
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
final List pkgAppsList = getPackageManager().queryIntentActivities( mainIntent, 0);
for (Object object : pkgAppsList)
ResolveInfo info = (ResolveInfo) object;
Drawable icon = getBaseContext().getPackageManager().getApplicationIcon(info.activityInfo.applicationInfo);
String strAppName = info.activityInfo.applicationInfo.publicSourceDir.toString();
String strPackageName = info.activityInfo.applicationInfo.packageName.toString();
final String title = (String)((info != null) ? getBaseContext().getPackageManager().getApplicationLabel(info.activityInfo.applicationInfo) : "???");
From the above code snippet, you can find all required information. You can now show all information using a List or Vector class and then show on a ListView in Android.
I hope this small code snippet about Get Installed Applications List in Android will help you at it’s best. Happy cording.
Post By SmrutiRanjan (57 Posts)
Working @ Samsung as a Project Lead for Android Smartphones. I have been blogging since 2008. Previously I was writing articles for other bloggers, but finally I have started my own blog-"Techblogon".I am also an active contributor for the blog-"Gadgets n Gizmos World". Job is my necessity, but blogging is my passion.
Website: → Techblogon