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 REpresentational State Transfer. 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. REST is also usually contrasted with (SOAP—Simple Object Access Protocol) web services. You can read more about REST at the ...

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