I want to save 100K around data in sqlite on android mobile but after 15K it is showing below out of memory error I am using AsyncTask for communication from server :
Out of memory on a 6468956-byte allocation.
"AsyncTask #2" prio=5 tid=13 RUNNABLE
| group="main" sCount=0 dsCount=0 obj=0x436b3428 self=0x512c9010
| sysTid=9951 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1361025880
| state=R schedstat=( 0 0 0 ) utm=33 stm=17 core=1
at java.lang.String.<init>(String.java:~255)
at java.lang.String.<init>(String.java:171)
at java.lang.String.<init>(String.java:141)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:192)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
threadid=13: thread exiting with uncaught exception (group=0x41631930)
FATAL EXCEPTION: AsyncTask #2
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
at java.util.concurrent.FutureTask.run(FutureTask.java:239)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.OutOfMemoryError
at java.lang.String.<init>(String.java:255)
at java.lang.String.<init>(String.java:171)
at java.lang.String.<init>(String.java:141)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:192)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
... 4 more
Please help... Thanks
Aucun commentaire:
Enregistrer un commentaire