I have 5 custom tiled service layers, each is displaying 1024x1024 png tiles. It looks like the device runs out of memory after a while and the application is killed. I was not able to find any way how to avoid the crash. I tried to cancel all pending tasks and clear each tiled layer when onLowMemory or onTrimMemory happens. It helps for a while, but then it crashes on zooming.
How can I avoid the low memory crash or how can I detect how many layers can be loaded?
Thanks.