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.)
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-4681-7_15
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4680-0
Online ISBN: 978-1-4302-4681-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)