My project is totally bases on images. I am using a gallery and a coverflow in my project and due to less heap size the app is forcefully close.
So every time I load my app I want to clear heap size, so I can reuse it.
I have used System.gc() & recycle ()
method in gallery and coverflow, but my gallery and coverflow, are inter-related so the object is always referenced, so System.gc()
and recycle()
are not having effect and my gallery and coverflow still crashes at a random point of time while using it.
For some reason I can't show my code here and even if, it is very big so I can't manage to show here.
Please help me out & thanks for reading this question.