Interview Questions
The following questions will help you to consolidate what is covered in this chapter:
- When do you use an async task?
- How does an async task improve upon using a handler to do the same thing?
- What are the three generic types used by an async task?
- What method of
AsyncTask runs on the worker thread?
- Can you issue a Toast from the
doInBackground() method?
- From what method can you report progress back to the main thread?
- How do you start work on an async task? What method do you call?
- Can you call
execute() twice on an async task?
- Do multiple async tasks issued by the main thread run simultaneously?
- What is the role of thread pools on async tasks?
- What is an orphan pointer?
- How do you reestablish a link to the activity when the device rotates?
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial