I’m learning java as I learn how to program in Android. I was under the impression that java handles all memory management for you, but this does not seem to be true. My small apps ran fine, but now I’m working on a puzzle app for toddlers that has a lot of graphics. I’ve been getting a lot of out of memory exceptions after the app runs for a while. Currently it runs fine, but I solved the issue by setting the bitmap pointers to null when I’m done with them. At the end of each service, I set all the bitmap objects to null and its working.
It works, but I don't understand if I’m supposed to free the pointers in java?