android - How can i get the application's icon from the package name? -
i have tried various solution stack overflow no luck. want.
- i know package name of different applications.
- i want application icon package name.
- show icons in image view.
for example, have package name com.example.testnotification
. how apps icon , show in imageview?
try this-
drawable icon = getpackagemanager().getapplicationicon("com.example.testnotification"); imageview.setimagedrawable(icon);
Comments
Post a Comment