Reputation: 9
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.
Upvotes: 0
Views: 60
Reputation: 5971
When you jump from one activity A to another B, A doesnt finish and resources are still in memoery, there are 3 solutions for this.
Upvotes: 1