Chapter 4. Understanding Content Providers

Android uses a concept called content providers for abstracting data into services. This idea of content providers makes data sources look like REST-enabled data providers, such as web sites. In that sense, a content provider is a wrapper around data. A SQLite database on an Android device is an example of a data source that you can encapsulate into a content provider.

Note

REST stands for RE presentational State Transfer. It is a confounding name for a simple concept which, as web users, everyone is quite familiar with. When you type a URL in a web browser and the web server responds with HTML, you have essentially performed a REST-based "query" operation on the web server. Similarly, when you update some ...

Get Pro Android 3 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.