Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am getting Out of memory on a 2065188-byte allocation error. because of the heap memory has increased(means the heap memory exceeds the maximum heap memory).


How to manage heap memory of an android application?
Posted
Comments
Sergey Alexandrovich Kryukov 13-Sep-13 1:59am    
This is quite a big chunk of allocated data, so, no wonder. What is the bitness of the processor and actually available memory? You could easily deplete the memory, because your heap is not all your system has to keep in its memory... :-)
—SA

1 solution

Please see my questions in my comment to the question and try to answer it just to yourself and get the idea on how much memory, by the order of magnitude, are required for different things. The problem is simple: no matter how well you "manage" your memory, if there is not enough memory, it's not enough. :-)

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900