[android-developers] Re: Hot to create a mutable Bitmap from the Camera, draw another Bitmap on top, and save it

2009-04-02 Thread Streets Of Boston
I have similar experiences. It seems you can have about 1 full size pic open (as a bitmap) and a few small ones. Anything extra will give you your error-message. In your example, until you call 'photo.recycle ()' you have 2 large bitmaps open at the same time at some point (photo and

[android-developers] Re: Hot to create a mutable Bitmap from the Camera, draw another Bitmap on top, and save it

2009-04-02 Thread phil
Thank you Strees of Boston. In the above sample, I replaced the line Bitmap mutablePhoto = photo.copy(Bitmap.Config.RGB_565, true); with Bitmap mutablePhoto = Bitmap.createScaledBitmap(photo, 480, 320, false); photo.recycle(); and now it works. Scaling down did the trick. Thanks again! Ph