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 16. Creating a Content Provider

What You’ll Learn in This Hour:

• How to retrieve data with a URI

• How to build a Content Provider

• How to use PhotoProvider in our app

• How to use the Channel Provider

In Hour 15, “Storing Data with SQLite,” we introduced SQLite and used cursors in our app to access data from the database. Content Providers can be thought of as a bridge between the database and the app. Content Providers work with any type of structured data. One reason to use a Content Provider is that it provides a way for other apps to access the data. That is what makes this a content provider. Another reason, which we will cover in detail in Hour 17, “Using Cursors and CursorLoaders,” is that Content Providers can be used with the ...

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