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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.