Android Interview Question
This is an Android Interview Question blog for Beginners
Tuesday, 2 February 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