I can’t get icon in properManner, I use PackageManager:
Code example
::List<PackageInfo> applications = getPackageManager().getInstalledPackages(0);
for(PackageInfo info : applications){
Drawable icon = info.applicationInfo.loadIcon(getBaseContext());
}
if I
“
In main.xml file :<ImageView android:id="@+id/imageView1" android:layout_height="wrap_content" android:layout_width="wrap_content" android:src="@drawable/icon"></ImageView>I want just display icon to Imageview.
In order to fecth bitmap from drawable and show in image view try below code