0

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

stefan bachert
  • 9,413
  • 4
  • 33
  • 40

1 Answers1

1

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?

Community
  • 1
  • 1
hackbod
  • 90,665
  • 16
  • 140
  • 154