Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

Thanks!

like image 775
Jai Avatar asked May 22 '12 05:05

Jai


People also ask

Where are app icons stored on Android?

The icons reside inside the . apk of each individual app.

Why does my Android home screen not show apps?

To enable a disabled app From your Home screen, tap the Application screen icon. Find and tap Settings > Apps. Tap All apps > Disabled. Select the app that you want to enable, then tap Enable.


1 Answers

try {     String pkg = "com.app.my";//your package name     Drawable icon = getContext().getPackageManager().getApplicationIcon(pkg);     imageView.setImageDrawable(icon); } catch (PackageManager.NameNotFoundException ne) {  } 

Check here for more details.

like image 197
Ponmalar Avatar answered Sep 20 '22 16:09

Ponmalar