I want to display a 480x320 JPEG file stored in the SD card in Android 2.0.1 with WVGA854 skin and 240 lcd density (Motorola Droid).
However, when I create a BitmapDrawable through Drawable.createFromPath(), the resulting BitmapDrawable has the following values:
mBitmapWidth = 320
mBitmapHeight = 213
mTargetDensity = 160
The manifest includes the following configuration:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
anyDensity="true"
/>
Apparently Android is resizing the bitmap. What could be the cause of this behavior? How can I avoid it?
Thank you in advance.