Android contacts is a built-in application. It also provides content providers which the third-party app can use to manipulate android contacts, for example, add, delete, update and query contacts. This article will introduce detailed information about how the android contacts are implemented.
Android Content Provider
Android contacts information is stored in data table. The data table is saved in SQLite database file /data /data /com.android.providers.contacts /databases /contacts2.db. There are columns data1 to data15 in data table, this article will tell you which column stores what type of contact data.
This example will show you how to use android ContentResolver to read mobile contacts data and display it in a list view and how to add new contact data programmatically.
The android content provider is mainly used for data sharing between different applications. It provides a complete set of mechanisms to allow one program to access data in another program, and also to ensure the security of the data being accessed.