开发者

How I can cancel the AsyncTask during invocation?

开发者 https://www.devze.com 2023-02-27 01:45 出处:网络
开发者_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 t

开发者_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?

0

精彩评论

暂无评论...
验证码 换一张
取 消