The application which I have developed is an survey application. The Navigation of my application is similar to this Page1 --> Page2 --> Page3 --> Page4 --> Page1. While navigating from one page to another it occupies heap space every time which leads to OOM exception.
I have tried
GC.Collect() in OnDisappearing() in every page, It didn't help
Used override OnLowMemory() in MainActivity.
public override void OnLowMemory() { GC.Collect (); }
Deleted High res images.
I have used bitmap for button renderer that too within the using block, other than this I haven't used bitmap anywhere else.
How to reduce Heap space usage from growing?? I can't find a way to free heap space. It keeps on increasing which leads to OOM exception. I have asked a similar question here
Can anyone please point out some helpful direction to overcome this??