2

I am implementing a function which performs some backend database task. I have used Asynctask for that but If the backend task is in process and I close the activity, I want to cancel the AsyncTask too. How I can do tat?

Micheale
  • 45
  • 4
  • possible duplicate of [How to cancel AsyncTask when Activity finishes?](http://stackoverflow.com/questions/2533149/how-to-cancel-asynctask-when-activity-finishes) – Mat Apr 17 '11 at 09:49

1 Answers1

0

How to cancel AsyncTask when Activity finishes?

Community
  • 1
  • 1
Rahul Patel
  • 1,198
  • 7
  • 5