PacktLib: Asynchronous Android

Asynchronous Android

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Building Responsive Android Applications

Introducing the Dalvik Virtual Machine

Understanding the Android thread model

Summary

Staying Responsive with AsyncTask

Introducing AsyncTask

Declaring AsyncTask types

Executing AsyncTasks

Providing feedback to the user

Canceling AsyncTask

Handling exceptions

Controlling the level of concurrency

Common AsyncTask issues

Applications of AsyncTask

Summary

Distributing Work with Handler and HandlerThread

Understanding Looper

Building responsive apps with Handler

Handler programming issues

Applications of Handler and HandlerThread

Summary

Asynchronous I/O with Loader

Introducing Loaders

Building responsive apps with AsyncTaskLoader

Building responsive apps with CursorLoader

Combining Loaders

Applications of Loaders

Summary

Queuing Work with IntentService

Introducing Service and IntentService

Building responsive apps with IntentService

Applications of IntentService

Summary

Long-running Tasks with Service

Building responsive apps with Service

Communicating with Services

Applications of Services

Summary

Scheduling Work with AlarmManager

Scheduling alarms with AlarmManager

Handling alarms

Staying awake with WakeLocks

Applications of AlarmManager

Summary

Index