Book description
As an Android developer you know you’re in a competitive marketplace. This book can give you the edge by guiding you through the concurrency constructs and proper use of AsyncTask to create smooth user interfaces.
- Learn how to use Android's high-level concurrency constructs to keep your applications smooth and responsive
- Leverage the full power of multi-core mobile CPUs to get more work done in less time
- From quick calculations to scheduled downloads, each chapter explains the available mechanisms of asynchronous programming in detail
In Detail
With more than a million apps available from Google Play, it is more important than ever to build apps that stand out from the crowd. To be successful, apps must react quickly to user input, deliver results in a flash, and sync data in the background. Multithreading is the ability of an operating system to execute different parts of a program, called threads, simultaneously. It is one of the major techniques used for parallel computing and concurrency.
This book provides a step-by-step tutorial which will explain how Asynchronous Tasks and Handlers are used for performing multithreading with Android to improve the performance of Android applications. This book also guides you through the concurrency constructs provided by the Android platform, illustrating the applications, benefits, and pitfalls of each.
In this book, you'll learn how to use AsyncTask correctly to perform operations in the background, keeping user interfaces running smoothly while avoiding treacherous memory leaks. It will also help you discover Handler, HandlerThread, and Looper, the related and fundamental building blocks of asynchronous programming in Android.
This book will help you to build well-behaved applications with smooth and responsive user interfaces. By the end of this book, you will be able to delight your users with speedy results and data that is always fresh.
Table of contents
-
Asynchronous Android
- Table of Contents
- Asynchronous Android
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Building Responsive Android Applications
- 2. Staying Responsive with AsyncTask
- 3. Distributing Work with Handler and HandlerThread
- 4. Asynchronous I/O with Loader
- 5. Queuing Work with IntentService
- 6. Long-running Tasks with Service
- 7. Scheduling Work with AlarmManager
- Index
Product information
- Title: Asynchronous Android
- Author(s):
- Release date: December 2013
- Publisher(s): Packt Publishing
- ISBN: 9781783286874
You might also like
book
Android Fragments
Android Fragments is a 100-page quick start accelerated guide to learning and quickly using Android fragments. …
book
Asynchronous Android Programming - Second Edition
Unlock the power of multi-core mobile devices to build responsive and reactive Android applications About This …
book
Android High Performance Programming
Build fast and efficient Android apps that run as reliably as clockwork in a multi-device world …
book
Migrating to Swift from Android
In 250 pages, Migrating to Swift from Android gives you—as an experienced Android app developer—all you …