Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 18: Exploring the AsyncTask > Interview Questions

Interview Questions

The following questions will help you to consolidate what is covered in this chapter:

  1. When do you use an async task?
  2. How does an async task improve upon using a handler to do the same thing?
  3. What are the three generic types used by an async task?
  4. What method of AsyncTask runs on the worker thread?
  5. Can you issue a Toast from the doInBackground() method?
  6. From what method can you report progress back to the main thread?
  7. How do you start work on an async task? What method do you call?
  8. Can you call execute() twice on an async task?
  9. Do multiple async tasks  issued by the main thread run simultaneously?
  10. What is the role of thread pools on async tasks?
  11. What is an orphan pointer?
  12. 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