As far as I understand from this thread, after changing target SDK to
android:targetSdkVersion="4, method BitmapFactory.decodeResource
changes behavior and now scales images according to screen dpi. Is
that right?

I have lots of bitmaps, in standard drawable directory, which are
pushed to OpenGL and which should *not* be scaled. They are loaded
with:
decodeResource (Resources res, int id)

So if I got it right, after moving to 1.6 decodeResource will now
randomly scale my bitmaps, and anyone using my method (which is valid
for 1.5) has to go through all their code and change all
decodeResource calls now.

Could someone shed more light on this, please?

On Sep 17, 9:07 pm, Romain Guy <romain...@google.com> wrote:
> > wtf? IMHO decodeResource() shouldn't make any assumptions on usage.
>
> Yes it should in this case. Otherwise your application just won't work
> on displays with different densities.
>
>
>
> > --
> > jason.vp.engineering.particle
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to