Terminating ASync tasks
I'd like to know if anyone has ever managed to terminate an Async task? Cancel
doesn't work, for some reason, and every time you restart the Activity a new task is started, the previous ones s开发者_如何学编程till remain.
You shall not use AsyncTask
for this purpose - see this related question which also provides a solution, but not the most ideal.
精彩评论