Is it possible to set an application-specific max heap size (the dalvik.vm.heapsize property) instead of using the same maximum heapsize for all VM's running on an Android device? I know I can set a new dalvik heapsize by modifying the device's AndroidRuntime.cpp as root, but based on what I have read, because Android only initializes the VM once and then forks subsequent VM instances all VM's running on the device have the same dalvik.vm.heapsize property. Am I understanding this correctly, and is there any way around it?
问问题
8748 次
2 回答
6
更改应用程序堆大小的唯一内置方法是android:largeHeap="true"
在 Manifest.xml 中进行设置。这通常会将堆大小从 48 增加到 128。
请记住,这种方法仅适用于 3.0+ 设备。
于 2012-05-11T21:12:55.453 回答
0
使用这个应用程序你可以增加所需应用程序的堆内存
请记住,要使用此应用程序,您需要根您的设备,使用SuperOneClick应用程序来根您的设备.. 单击下面的链接以获取参考
http://www.makeuseof.com/tag/root-android-phone-superoneclick-2/
于 2012-09-14T12:04:10.920 回答