SDK doc:
android:largeHeap
Whether your application's processes should be created with a large Dalvik heap. This applies to all processes created for the application. It only applies to the first application loaded into a process; if you're using a shared
user ID to allow multiple applications to use a process, they all must use this option consistently or they will have unpredictable results.
Most apps should not need this and should instead focus on reducing their overall memory usage for improved performance.
Enabling this also does not guarantee a fixed increase in available memory, because some devices are constrained by their total available memory.
To query the available memory size at runtime, use the methods getMemoryClass() orgetLargeMemoryClass().
具体增加多少可用内存还是跟device有关
本文详细介绍了Android应用中largeHeap配置的作用与限制,探讨了它如何影响应用进程的内存分配,并提供了查询运行时可用内存的方法。
2509

被折叠的 条评论
为什么被折叠?



