Jai Jai - 1 year ago 80
Android Question

Get icons of all installed apps in android

I want to get icons of my all installed apps. Can I get that icons using package manager? Is there any function for it? Or any other way to get icons of all installed apps in bitmap?


Answer Source
String pkg = "com.app.my";//your package name
Drawable icon = getContext().getPackageManager().getApplicationIcon(pkg);
catch (PackageManager.NameNotFoundException ne)


Check here for more details.