We spoke briefly about content providers as Android components in Chapter 2, Building an Android Application - Tetris. While doing so, we established the fact that content providers help an application control access to data resources stored either within the application or within another app. In addition, we established that a content provider facilitates the sharing of data with another application via an exposed application programming interface.
A content provider behaves in a way that is similar to the behavior of a database. A content provider permits the insertion, deletion, editing, updating, and querying of content. These abilities are permitted by the use of methods such as insert(), update(), delete(), and query(). In many cases, data controlled by a content provider exists in a SQLite database.
A content provider for your application...