android - AsyncTask error , Help me check this -


this question has answer here:

05-15 13:33:04.121: e/androidruntime(22516): fatal exception: pool-7-thread-5 05-15 13:33:04.121: e/androidruntime(22516): process: my.com.newpagesv2, pid: 22516 05-15 13:33:04.121: e/androidruntime(22516): java.lang.runtimeexception: error occured while executing doinbackground() 05-15 13:33:04.121: e/androidruntime(22516):    @ android.os.asynctask$3.done(asynctask.java:300) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.util.concurrent.futuretask.finishcompletion(futuretask.java:355) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.util.concurrent.futuretask.setexception(futuretask.java:222) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.util.concurrent.futuretask.run(futuretask.java:242) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.lang.thread.run(thread.java:841) 05-15 13:33:04.121: e/androidruntime(22516): caused by: android.view.viewrootimpl$calledfromwrongthreadexception: original thread created view hierarchy can touch views. 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.viewrootimpl.checkthread(viewrootimpl.java:7081) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.viewrootimpl.invalidatechildinparent(viewrootimpl.java:1107) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.viewgroup.invalidatechild(viewgroup.java:4529) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.view.invalidate(view.java:11809) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.view.invalidate(view.java:11750) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.widget.imageview.invalidatedrawable(imageview.java:211) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.graphics.drawable.drawable.invalidateself(drawable.java:393) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.graphics.drawable.drawable.setvisible(drawable.java:624) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.widget.imageview.ondetachedfromwindow(imageview.java:1265) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.view.dispatchdetachedfromwindow(view.java:13557) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.viewgroup.dispatchdetachedfromwindow(viewgroup.java:2791) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.view.viewgroup.removeallviewsinlayout(viewgroup.java:4236) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.widget.abslistview.resetlist(abslistview.java:2388) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.widget.listview.resetlist(listview.java:527) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.widget.listview.setadapter(listview.java:468) 05-15 13:33:04.121: e/androidruntime(22516):    @ my.com.newpagesv2.browsebyalp$getjsonmorealpdata.doinbackground(browsebyalp.java:356) 05-15 13:33:04.121: e/androidruntime(22516):    @ my.com.newpagesv2.browsebyalp$getjsonmorealpdata.doinbackground(browsebyalp.java:1) 05-15 13:33:04.121: e/androidruntime(22516):    @ android.os.asynctask$2.call(asynctask.java:288) 05-15 13:33:04.121: e/androidruntime(22516):    @ java.util.concurrent.futuretask.run(futuretask.java:237) 05-15 13:33:04.121: e/androidruntime(22516):    ... 3 more 

update ui that.

youractivity.runonuithread(new runnable() {       @override       public void run() {          // update ui here       }    });   

i hope you..!


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -