Open main menu

CDOT Wiki β

Changes

MAP524/DPS924 Lecture 5

378 bytes added, 16:01, 18 July 2015
Threads
== AsyncTask ==
 
Basically just a thread but with a built-in function to update the UI after it's finished. To use it you'll need to:
 
* Extend AsyncTask to make your own class, and decide on the types of parameters and return value.
* Implement doInBackground() to do all the work, and parse the parameters first.
* Implement onPostExecute() to update the UI after doInBackground() completes.