I recently rebuilt my project to target 2.2 from 2.1.
In the old project, I did not specify a target SDK (the manifest did
not contain something like: <uses-sdk android:minSdkVersion="8" />).
This gave me an error in the console when running, but everything
worked fine so I didn't fool with it.
The new project now uses <uses-sdk android:minSdkVersion="8" /> in the
manifest.
But now my drawables from the /drawable-nodpi/ folder are loading with
scaling, making them much smaller and significantly changing the
desired visuals.
If I cut out the <uses-sdk android:minSdkVersion="8" /> tag from my
manifest, they load properly without scaling.
Even when loading my images like so:
BitmapFactory.Options opts = new
BitmapFactory.Options();
opts.inScaled = false;
Bitmap bm = BitmapFactory.decodeResource(_resources,
resId, opts);
They are still scaled when I declare the minimum SDK in the manifest,
but not scaled if I remove that tag.
Why is this happening? How can I load them without scaling while still
declaring the minimum SDK?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en