I faced some issues related to MemoryOutOfBounds exception in android. I found There are two reasons behind this
(1) Thread created are alive and not destroyed anywhere
(2) Memory leak.
We can detect thread information in eclipse. But how to know at which line of my code memory leak occurs when I execute my application. MAT works differently. MAT is static.
Is there any plug-ins or any way to know memory-leak in eclipse?
This might be useful.
You don’t need a memory leak to get an OutOfMemoryError, simply using too much memory in your app will cause it.
You can have a look at the following links regarding how to avoid memory-leaks: