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
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
2 matches
Mail list logo