O'Reilly logo

Sams Teach Yourself Google TV™ App Development in 24 Hours by Carmen Delessio

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

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

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