I also get the OOME ( 6291456-byte) with bitmap file of 350KB (if it is 35KB, it is fine) when I do the rotation on the third time. I use Bitmap.createScaledBitmap so that the pic fit into the screen and I also try do myPic.recycle() in onSaveInstanceState to release the memory but it is not helping. I wonder if I need to do myPic.compress instead of Bitmap.createScaledBitmap and if I am not doing the proper myPic.recycle().
On Thu, Apr 9, 2009 at 4:53 PM, Mark Murphy <mmur...@commonsware.com> wrote: > > mark.ka...@gmail.com wrote: > > There's been a number of threads on this issue, the BitmapFactory > > tends to throw this out of memory errors when it really shouldn't, > > looks like a bug or memory leak. I'm not sure if it's cataloged as an > > official bug though. > > If you have a reproducible test case, head over to http://b.android.com > and make it official. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---