gpt4 book ai didi

android - Android应用程序的标准内存覆盖率

转载 作者:行者123 更新时间:2023-11-29 00:48:15 25 4
gpt4 key购买 nike

标准 android 应用程序可以使用的最大内存应该是多少。

最佳答案

http://developer.android.com/reference/android/app/ActivityManager.html#getMemoryClass()

Return the approximate per-application memory class of the current device. This gives you an idea of how hard a memory limit you should impose on your application to let the overall system work best. The returned value is in megabytes; the baseline Android memory class is 16 (which happens to be the Java heap limit of those devices); some device with more memory may return 24 or even higher numbers.

基本上,从 16mb 到任何大小。

关于android - Android应用程序的标准内存覆盖率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5077176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com