Hour 17. Using Loaders and CursorLoaders

What You’ll Learn in This Hour:

• How Loaders work

• What Loader classes are available

• How to initialize, create, and reset a Loader

• How to add loaders to ImageViewFragment

In Hour 16, “Creating a Content Provider,” we created our own ContentProvider. PhotoProvider provides content about photos on Facebook pages and returns an image file when requested. One reason we developed our own ContentProvider was to take advantage of how well ContentProviders work with CursorLoaders.

In this hour, we change our app to take advantage of a CursorLoader. CursorLoaders are an implementation of the Loader class.

How Loaders Work

Loaders were introduced in Android 3.0. We are assured that they can be used in all ...

Get Sams Teach Yourself Google TV™ App Development in 24 Hours 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.