How to get icons of Installed Applications in Android
I wanted to get icons of running activities And here I done it.
And you may need to convert the return values to Bitmap.List<PackageInfo> packs = getPackageManager().getInstalledPackages(0);Drawable[] icons=new Drawable[packs.size];for(int i=0;i<packs.size();i++) {PackageInfo p = packs.get(i);icons[i]= p.applicationInfo.loadIcon(getPackageManager());}
Comments
Post a Comment