This code
final ApplicationInfo ai = getPackageManager().getApplicationInfo("com.company.hello", 0); final Drawable d = getPackageManager().getApplicationIcon(ai);
pull out 48x48 (mdpi) pullable even on my hidensity HoneyComb device .
Given that I can increase the ejected Bitmap.createScaledBitmap, I ask how to extract the hi density icon that already exists. The getDrawableForDensity method is not available for sdk <15, but I am not happy to call the zoom function for each icon that I have to draw when it is available in the package for free.
Edit for bounty
Having forgotten about the display density of my device for a while, the question is: if you have your own package, for which we definitely know the 72x72 icon in the relative hdpi res folder, how can I extract this icon from another package?
THIS FUNCTION is not available in Honeycomb.
source share