O'Reilly logo

Asynchronous Android by Steve Liles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required