Showing posts from August, 2015

Working with android contacts

Detecting changes in Android contacts Intro In next few lines we will talk about detecting changes in Android contacts. Android Os provides a storage for contacts called Contacts Provider. Contact Provider allows you to manage an access to a structured set of data and standard interface that connects data in one process with code running from another process. Structure Android Contacts structure consists of many tables, here are few of them. ContactsRaw table: (listing important rows) _id - RAW_CONTACT_ID account_name - e.g. email address account_type - account type e.g. deleted Table ContactsContract.RawContacts.CONTENT_URI contains original contacts. This table mainly stores raw_id. The contact details are stored in Contact Contract table. Contacts table: (listing important rows) _id - CONTACT_ID (this id refers one group of raw_contact_id ) lookup - link to all contact details and contact in this table Table Contacts.CONTENT_URI consists of