与本主题Android: OutofMemoryError....相关
如何在ddms (Eclipse)上查看堆大小?我只能跟踪分配,它不会显示任何内容
发布于 2011-04-28 17:36:54
您可以尝试从代码本机堆分配:Debug.getNativeHeapAllocatedSize()
发布于 2013-12-14 13:53:42
这显示了设备的最大堆内存
Runtime rt = Runtime.getRuntime();
long maxMemory = rt.maxMemory();这适用于应用程序所需的堆
Runtime rt = Runtime.getRuntime();
long maxMemory = rt.maxMemory();https://stackoverflow.com/questions/5816484
复制相似问题