I encountered a situation where there's an inconsistency in how
different configurations are handling bitmap mutability.

I create my bitmap by decoding it from resources, such as:

Bitmap myBitmap =
BitmapFactory.decodeResource(myActivity.getResources(),
R.drawable.mybitmap);

Then I call setPixel() on the bitmap. On some devices, such as the
Droid (2.1) and the Nexus (2.1), the bitmap is mutable and setPixel()
works just fine.

On other devices, including the G1 (1.6), the Eris (2.1 Sense), and
the Incredible (2.1 Sense) when setPixel() is called, an
IllegalStateException is thrown, and when I call isMutable() to check
the mutability of the bitmaps in these cases, sure enough it returns
true for the Droid/Nexus and false for the G1/Eris/Incredible.

This is the second time this week that I've run into a bug that was
particular to a Sense device running the same OS version as a non-
Sense device. How are we supposed to handle reporting these bugs, and
has anyone else encountered either this particular issues, or other
similar differences between Sense/non-Sense configurations?

-- 
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