jeudi 13 novembre 2014

OutOfMemoryError on Android devices using jsoup 1.6.0


Vote count:

0




What i am doing is getting the app details from Google play and checking for updates through a service that runs once a day.


Its working fine on some small devices like Nexus S but in Samsung Note 1 its getting a crash



java.lang.OutOfMemoryError
at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:201)
at org.jsoup.helper.DataUtil.readToByteBuffer(DataUtil.java:96)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:408)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:364)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:143)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:132)
at com.gv.mface360e.UpdateCheckService.web_update(UpdateCheckService.java:89)
at com.gv.mface360e.UpdateCheckService.checkForApplicationsUpdate(UpdateCheckService.java:49)
at com.gv.mface360e.UpdateCheckService.access$0(UpdateCheckService.java:45)
at com.gv.mface360e.UpdateCheckService$1.run(UpdateCheckService.java:39)
at java.lang.Thread.run(Thread.java:841)


I dont know the reason or how to avoid this Plz help me.



asked 1 min ago







OutOfMemoryError on Android devices using jsoup 1.6.0

Aucun commentaire:

Enregistrer un commentaire