Issue
Is there anyway to cancel all the running instances of an Asynctask ? Thanks in advance.
I want to cancel the progress dialog on pressing back button meanwhile all the instances of an asynctask from the same piece of code.
Solution
You can't cancel all instances WITHOUT a reference to EACH individual AsyncTask.
Read docs on what cancel() does form AsyncTask.
Once you have a reference to each AsyncTask, then you can cancel each of them.
Answered By - JoxTraex
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.