using asynctask android Archive

Correct way to cancel an AsyncTask in Android

Author: | Categories: Quick Tips No comments
It is advisable to cancel an AsyncTask after it complete it’s execution or you have no need to keep continue it’s execution. That time you need a correct way to cancel an AsyncTask in Android. It may be a OnBackPress event of Activity or OnDestroyView of Fragment. Because AsyncTask

Using AsyncTask Android

Author: | Categories: Android, Quick Tips No comments
In this tutorial we will learn what is AsyncTask and using AsyncTask Android. In android if we need to perform some background task like a network operation(calling webservice) or to perform time consuming complex data calculation like loading a large amount of data from database or to read/write large