未解決之前問題可能的方法
在<application>裡面
加上android:largeHeap="true"
有圖檔處理過大或其他原因發生OOM的朋友試試看吧

缺點:系統所沛羽的空間越大,在GC(資源回收)上會越慢。

說明___________________________________________________________________________
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().
arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()