Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to clear grow heap size in titanium app in android?

I have download 100 images store in application data directory its working fine but i have download more images then grow heap size problem is coming and application is closed.I have remove all objects,value of objects define null and window is also closed but result is same.

ERROR:grow heap (frag case) to 14.687MB for 517197-byte allocation

Like in Core android System.gc(); So what is the option of titanium

like image 615
user3359214 Avatar asked Oct 31 '22 22:10

user3359214


1 Answers

why not use android:largeHeap="true"

  <android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
    <application android:largeHeap="true"/>
</manifest>

read titanium official doc here

like image 127
Ravi Garg Avatar answered Nov 09 '22 09:11

Ravi Garg