How to increase heap size on Android 2.3 (Gingerbread)?

那年仲夏 提交于 2019-12-04 16:13:54

Is that assumption correct?

I cannot say whether VMRuntime ever worked. android:largeHeap is definitely something for API Level 11+.

What do you do when you're in between VMRuntime and android:largeHeap="true"?

Find a more memory-efficient way of building your 4MB String, such as by providing a large capacity to your StringBuilder constructor.

Or, find a way to implement whatever it is that you are doing without creating a contiguous 4MB String.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!