Thank you all for your reply.
I've tried the above solution and it works perfectly. I was reluctant
to do so, since in the documentation it says:
"
public void recycle ()
Free up the memory associated with this bitmap's pixels, and mark the
bitmap as "dead", meaning it will throw an exception if
Try this: Before setting it to null, call mpBitmap.recycle().
But be sure, though, that the reference held by mpBitmap is not held
somewhere else in your program by another heap variable, cache or an
active View.
On Jun 23, 9:07 am, hamlatzis wrote:
> My application crashes after I try to use t
a 1024x1024 bitmap will be (IIRC) 4MB. Creating a few will likely
cause you to run out of memory. Use Bitmap.recycle to free up the
resources that a bitmap you no longer need is using
On Jun 23, 9:07 am, hamlatzis wrote:
> My application crashes after I try to use the static Bitmap
> createBit
3 matches
Mail list logo