开发者_JAVA技巧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?
How to cancel AsyncTask when Activity finishes?
精彩评论