I have created a UI that is rich with PNG images for a Xamarin Android application, mostly images are assigned declaratively in the AXML layouts and range from 5 KB to 100 KB in size, unfortunately after running the application and navigating between Activities for sometime the application crashes with messages in the LogCat mentioning memory issues as follow
02-14 21:01:34.856: E/dalvikvm-heap(18277): Out of memory on a 4320016-byte allocation.
02-14 21:01:34.876: D/skia(18277): --- allocation failed for scaled bitmap
Also when I monitored the application using Xamarin Profiler, I found that the memory allocation chart goes up on launching an activity but doesn't go down on closing the activity (although I am using Finish method to close it), which means that the memory consumed by the activity does not get deallocated!
Any idea what could be the problem?