Android的堆内存增加内存、Android

2023-09-05 02:07:08 作者:[┭抽筋魚о]

我开发这需要大量的内存和我最运行不可能是因为低内存完全在Android 2.2的应用程序。任何人可以给我的解决方案,我怎么能提高我的应用程序堆的大小。我曾尝试机器人:largeHeap =真,但它不支持在Android的API-8

I am developing an application on Android 2.2 which takes extensive memory and my most operation cannot be complete because of low memory. Could anybody give me solution that how can I increase my application heap size. I have tried android:largeHeap="true" but it is not supported in Android API-8.

我很感谢大家。

推荐答案

堆的大小取决于你运行你的应用程序的硬件。有关在Nexus One的一个G1和32MB例如16MB。不认为有什么可以做的。如果你的目标在3.0以下的版本即是。

Heap size depends on the hardware your running your app an. For example 16mb on a G1 and 32mb on a nexus one. Don't think there is much you can do about it. If you target versions below 3.0 that is.

 
精彩推荐
图片推荐