Explain the role of the UI thread…
The UI thread is the equivalent to the main thread in a Java program. It deals with all user interactions.
When the UI thread wants to hand-off to another thread, what does it do?
Sends a hand off request to AsyncTask.
Where is the created AsyncTask class located? What class does it extend?
AsyncTask is defined as an inner class.
It extends AsyncTask.
What generics are included when extending AsyncTask?
Params
Progress
Result
What are the 4 methods in AsyncTask?
onPreExecute( ) -> Configure pre-requisites in the UI thread.
doInBackground( Params ) -> Define the execution of the AsyncThread.
onProgressUpdate( Progress )
onPostExecute( Result )