I'm having trouble finding good information about garbage collection in Android.
I don't really understand when you have a memory exception
Here's a question:
When I run my application and monitor it with the Android Device Monitor I see that the allocated memory is 8 MB when the application has just started.
There's a button that creates an object each time it's pushed.
So when i keep pushing the button, the allocated memory grows until it reaches the heap size. When the heap size is reached, the allocated memory goes back to 8 MB but the heap has grown a little bit. After that, this whole thing happens again and the heap keeps growing
Do i have a memory exception in this case? or is it normal that the heap size keeps growing?