我正在做的是从Google Play获取应用详情,并通过每天运行一次的服务检查更新。
它在Nexus S等小型设备上运行良好,但在三星Note 1中却出现了崩溃
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)
我不知道原因或如何避免这个Plz帮助我。