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