Skip to main content

Advanced AsyncTask and Progress Dialogs

  • Chapter
Pro Android 5

Abstract

In Chapter 13, we covered handlers and worker threads to run long-running tasks while the main thread kept the UI house in order. Android SDK has recognized this as a pattern and abstracted the handler and thread details into a utility class called AsyncTask. You can use AsyncTask to run tasks that take longer than five seconds in the context of UI. (We will cover how to run really long-running tasks, ranging from minutes to even hours, through “Long-Running Receivers and Services” in Chapter 16.)

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Dave MacLean, Satya Komatineni, and Grant Allen

About this chapter

Cite this chapter

MacLean, D., Komatineni, S., Allen, G. (2015). Advanced AsyncTask and Progress Dialogs. In: Pro Android 5. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4681-7_15

Download citation

Publish with us

Policies and ethics