Monday, 15 August 2011

android - How to cancel AsyncTask or all AsyncTask including nested AsyncTasks from same Activity? -



android - How to cancel AsyncTask or all AsyncTask including nested AsyncTasks from same Activity? -

i have activity utilize asynctask open cursor spawns children asynctask render items read cursor.

activity executes on cursor asynctask not see children asynctask items.

how cancel running asynctask tasks (including nested) specified activity?

how cancel running children asynctask tasks specified asynctask (if possible @ all)?

i want stop tasks on new command interface not corrupt views.

there's no manager asynctask execute.

you'll have maintain track of new instances of asynctasks you've created , close them cancel(boolean mayinterruptifrunning) method. pay attending canceling task won't stop in middle. you'll have check in doinbackground - iscanceled()

android android-asynctask

No comments:

Post a Comment