I want to check the current memory situation to get early informed about low memory.
I called ActivityManager.getMemoryInfo
The strange thing is: MemoryInfo states 77MByte of available memory but next step fails due to allocation of 192KBytes.
Did I something wrong? Or is MemoryInfo useless?
Happend on android 2.3.3
MemoryInfo is for debugging. See my post here on why trying to do things based on “free memory” this way is doomed to failure:
How do I discover memory usage of my application in Android?