我已经下载了 100 张图像存储在应用程序数据目录中,它工作正常 但是我已经下载了更多图像,然后堆大小增加问题来了,应用程序关闭了。我删除了所有对象,对象的值定义为 null,窗口也关闭了,但结果是一样的。
错误:为 517197 字节分配将堆( fragment 情况)增加到 14.687MB
就像核心 android System.gc(); 那么钛的选择有哪些
最佳答案
为什么不用 android:largeHeap="true"
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:largeHeap="true"/>
</manifest>
阅读钛官方文档 here
关于android - 如何清除 android 中 titanium 应用程序中堆大小的增长?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24075390/