Detect application heap size in Android

后端 未结 9 2135
-上瘾入骨i
-上瘾入骨i 2020-11-22 07:38

How do you programmatically detect the application heap size available to an Android app?

I heard there\'s a function that does this in later versions of the SDK. In

9条回答
  •  旧巷少年郎
    2020-11-22 08:08

    The official API is:

    This was introduced in 2.0 where larger memory devices appeared. You can assume that devices running prior versions of the OS are using the original memory class (16).

提交回复
热议问题