Bitmap size exceeds VM budget after second load
Posted
by
jonny
on Stack Overflow
See other posts from Stack Overflow
or by jonny
Published on 2013-11-12T09:41:40Z
Indexed on
2013/11/12
9:53 UTC
Read the original article
Hit count: 201
This is driving me crazy. I have a game which has a bitmap as the background, this is big so I scale it down and this works fine. However when I navigate to another activity and then reload the game screen it crashes on drawing the background. I am calling recycle on all the bitmaps and setting them to null on onDestroy() but this doesn't help.
Any ideas and if not how can I debug the memory to see at which step its growing. I looked at getting the heap but nothing of any size is on there really.
Thanks.
© Stack Overflow or respective owner