I have a bitmap that I want to display in my Android app. This works fine for platforms with version number greater than 1.5 but not for 1.5. When executing the line below an exception is thrown stating that the resource couldn’t be found.
Bitmap bmp = BitmapFactory.decodeResource(mApplicationContext.getResources(), R.drawable.arrow);
I have put the bitmap in all density-folders (hdpi, mdpi, ldpi) and scaled them according to the documentation (the mdpi-bitmap is 25×25 pixels and the ldpi-bitmap size 75% of the mdpi-bitmap size and the hdpi-bitmap size 150% of the mdpi-bitmap size).
Any idea what is wrong here?
Thanks,
Christian
Try adding /res/drawable directory and copy /res/drawable-midp pictures to it.
Android 1.5 does not support resolution independence.