Background processing with AsyncTask
in Android
This tutorial shows how to use Android AsyncTask class to run jobs in background threads. All long running jobs need to run in a background thread so that they won't lock up the UI and create an Application Not Responding dialog.