Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get installed app icon android kotlin

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

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #installed #app #icon #android #kotlin
ADD COMMENT
Topic
Name
8+5 =