asynctask 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

Show ProgressDialog Android

Author: | Categories: Android, Quick Tips No comments
In this tutorial we will learn about how to use / show ProgressDialog android. While performing some time taking tasks we need to show a loading indicator on screen like loading.., please wait.., etc. We can use built in android feature ProgressDialog,  it is easy to use loading indicator class