Android Interview Question
Friday, 3 June 2016
How to Stop Asynctask Thread in Android ?
if (loginTask != null && loginTask.getStatus() != AsyncTask.Status.FINISHED)
{
loginTask.cancel(true);
}
Where loginTask is object of your AsyncTask
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment