How do I get to the Icon Launcher from another Android application on the device if I know its Package Name?
Example
String googlePackageName = "com.google.maps";
Drawable googleIcon = googlePackageName.getIconLauncher() or something.
How do I get to the Icon Launcher from another Android application on the device if I know its Package Name?
Example
String googlePackageName = "com.google.maps";
Drawable googleIcon = googlePackageName.getIconLauncher() or something.
The following snipped should point you in the right direction:
I came across this question. Never heard of before. But I guess this should be the solution:
Use PackagerManager's getApplicationIcon() for this task: