Logging shows me that the onPause() method is being called, yet the
    AsyncTask is still running while I'm viewing the other activity.


http://developer.android.com/reference/android/os/AsyncTask.html

<http://developer.android.com/reference/android/os/AsyncTask.html>Read
"Canceling a Task".

Ok, I see that I have to check isCancelled() from within
doInBackGround() and exit myself.  What confused me was the
boolean argument to cancel().

mayInterruptIfRunning true if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete.

So I thought that by calling cancel(true), the task would be whacked.
What does that argument really do then?

Thanks,

Tobiah

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to