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