Chapter 4. Asynchronous I/O with Loader

The concurrency constructs we've encountered so far have been quite general in purpose, but in this chapter we'll take a look at a construct with a more specific focus—Loader.

In this chapter we will cover the following topics:

  • Introducing Loaders
  • Building responsive apps with AsyncTaskLoader
  • Building responsive apps with CursorLoader
  • Combining Loaders
  • Applications of Loaders

Introducing Loaders

As the name suggests, the job of Loader is to load data on behalf of other parts of the application, and to make that data available across activities and fragments within the same process.

Loaders were introduced to the Android platform at API level 11, but are available for backwards compatibility through the support libraries. ...

Get Asynchronous Android now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.