Sub GetFreeMemory As String
Dim r As Reflector
r.Target = r.RunStaticMethod("java.lang.Runtime", "getRuntime", Null, Null)
Return ("available Memory = " & ((r.RunMethod("maxMemory") - r.RunMethod("totalMemory"))/(1024*1024)) & " MB")
End Sub
On Android, Java cannot use all available memory. Therefore if an app uses many or big images it runs often out of memory.
If you have no memory leak and the bitmaps are the problem then try to add SetApplicationAttribute(android:largeHeap, "true")
in the manifest editor.