I have a problem that Task manager on device claims that my app uses incredible amounts of memory. Numbers like 400MB or even 600MB are common. Dont understand why it shows numbers like that as there is nothing in the app that could make it go into such numbers.
So I read Google docs about memory management, I read tons of other tutorials. My app should be fine, but I went to investigate further by monitoring memory with DDMS. After monitoring the heap there it shows numbers mostly around 40MB allocated with 70MB heap size, so much less that what devices Task manager claims.
I also made heap dumps which I analyzed with MAT and again numbers around 40MB are shown there too.
So why do devices claim that much more memory is used than what Eclipse memory tools show to me? Am I to believe what Task manager shows? Did anyone have problems like this and more importantly what is the cause of this?