android - How can i get the application's icon from the package name? -


i have tried various solution stack overflow no luck. want.

  1. i know package name of different applications.
  2. i want application icon package name.
  3. 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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -