This is the craziest issue. I am loading custom icons from the assets directory for use with my application. The application loads the custom icon and makes a shortcut on the desktop. All of the icons are 48x48 png files.
On the Android 2.1 and 2.2 emulator this works perfect. On the Droid X (Android 2.2) the icons show up smaller than 48x48.
Now for the kicker, if I move one of the icons to the drawable directory and load it from there it shows up correctly.
Any ideas what the problem could be with the droid x?
Is there any way to get a list of all drawables? If there is I could just put all my icons in the drawables directory, albeit a little ugly to dump 100 icons in there.
My code for loading the icons is pretty standard:
AssetManager assets = context.getAssets();
InputStream inputStream = assets.open("icons/"+ name);
if (inputStream != null)
{
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
if (bitmap != null)
{
return bitmap;
}
}