I am developing one android application which is using more images with resolution 640*960 approximately. all these images are loaded with bitmaps with proper scaling factor.
When i am loading bitmpas heap size is increasing and it is not decreasing even though i am recycling the bitmpas. as i read few theory's regarding this issue maximum says once heap increased it will not decreased at all.
My problem is if i close my application when heap size is 10MB , and when i reopen the application heap is starts from 10Mb. it causes VM exceeds Maximum heap memory and then Out Of Memory after some time.
what i have to do for this, and i am guarantee that my application will never close with out recycling bitmaps.
can any one please suggest me how to minimze the heap memory and solve this OOM.