Asynchronous Android
Free

Asynchronous Android

Used this app? Rate it
Download
380 KB
100+
2.1 and up

Description

This app accompanies the book "Asynchronous Android" (ISBN 978-1-78328-687-4), and is intended for developers of Android apps. Check out the book (available from http://www.packtpub.com/concurrent-programming-on-android/book) for detailed coverage and explanation of the examples - many of the examples may not make sense unless you follow along with the code and/or book. The most up-to-date source code for this app is available from https://github.com/steveliles/AsyncAndroid
The examples are arranged in a single app, and grouped by chapter as follows:
Chapter 1 - The Process Model
---------------------------------------------
In chapter 1 we learn about Android's single threaded event loop and the main/ui thread. The examples show some of the bad things that can happen when you do too much work on the main thread.
Chapter 2 - Staying responsive with AsyncTask
---------------------------------------------------------------------
Covers the poster-child of concurrent programming in Android. We learn how AsyncTask works, how to use it correctly, and how to avoid the common pitfalls that catch out even experienced developers.

Chapter 3 - Distributing work with Handler, HandlerThread, and Looper
-----------------------------------------------------------------------------------------------------
Details the fundamental and related topics of Handler, HandlerThread, and Looper, and illustrates their use to schedule tasks on the main thread, and to coordinate and communicate work between cooperating background threads.

Chapter 4 - Asynchronous IO with Loader
------------------------------------------------------------
Introduces the Loader framework and tackles the important task of loading data asynchronously to keep the user-interface responsive and glitch-free.

Chapter 5 - Queuing work with IntentService
----------------------------------------------------------------
Gives us the means to perform background operations beyond the scope of a single Activity lifecycle, and to ensure that our work is completed even if the user leaves the application.

Chapter 6 - Long-running tasks with Service
----------------------------------------------------------------
Extends the capabilities we discovered with IntentService, and gives us control over the level of concurrency applied to our long-running background tasks.

Chapter 7 - Scheduling work with AlarmManager
----------------------------------------------------------------------
Completes our toolkit, enabling us to arrange for work to be done far in the future and on repeating schedules, to build apps that alert users to new content and start instantly with fresh data.
Write a review

User reviews

Don't miss interesting stories

  • Alcatel Idol 3 Launched Quicker and Cheaper than Expected

    Alcatel Idol 3 Launched Quicker and Cheaper than Expected

    News
  • Clickjackers Could Become a New Trend in Malware

    Clickjackers Could Become a New Trend in Malware

    News
  • Useful Programs for Brilliant Students

    Useful Programs for Brilliant Students

    Article
  • Norway is Shutting Down the Radio

    Norway is Shutting Down the Radio

    News
  • Sony Unveils Its New Flagship Xperia Z4 Phone

    Sony Unveils Its New Flagship Xperia Z4 Phone

    News
  • Huawei Unveilled Its P8 Phones with 'Professional' Cameras

    Huawei Unveilled Its P8 Phones with 'Professional' Cameras

    News
  • Yahoo and Bing Sign a New Deal

    Yahoo and Bing Sign a New Deal

    News
  • Emojis Aren't Expressive Enough? Try Introji

    Emojis Aren't Expressive Enough? Try Introji

    News
  • Most Anticipated Tablets of 2015

    Most Anticipated Tablets of 2015

    Article
  • Meet 360cam, The First Full HD 360º Camera

    Meet 360cam, The First Full HD 360º Camera

    News