Skip to content
Search

Android.os.AsyncTask

lastmod 2018-08-17created 2014-02-143 edits

AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.

AsyncTask is a class made to make using handlers and threads convenient. It is simple because both UI work and business logic can be handled within one class. As for usage, you can assume AsyncTask is used for almost any case where UI and logic must run together, such as downloads, login, and so on.

AsyncTask template parameters

AsyncTask<type1, type2, type3>

  • type1: parameter type of doInBackground().
  • type2: parameter type of onProgressUpdate().
  • type3: parameter type of onPostExecute().

Download

Com.zekiplay.android.app.util.AsyncDownload.zip (2014-02-14)
AsyncDownload class that helps download data from the web.

Favorite site