Added in API level 5
ContactsContract.Contacts
public
static
class
ContactsContract.Contacts
extends Object
implements
BaseColumns,
ContactsContract.ContactNameColumns,
ContactsContract.ContactOptionsColumns,
ContactsContract.ContactStatusColumns,
ContactsContract.ContactsColumns
| java.lang.Object | |
| ↳ | android.provider.ContactsContract.Contacts |
Constants for the contacts table, which contains a record per aggregate of raw contacts representing the same person.
Operations
- Insert
- A Contact cannot be created explicitly. When a raw contact is
inserted, the provider will first try to find a Contact representing the
same person. If one is found, the raw contact's
RawContacts.CONTACT_IDcolumn gets the _ID of the aggregate Contact. If no match is found, the provider automatically inserts a new Contact and puts its _ID into theRawContacts.CONTACT_IDcolumn of the newly inserted raw contact. - Update
- Only certain columns of Contact are modifiable:
ContactsContract.ContactOptionsColumns.STARRED,ContactsContract.ContactOptionsColumns.CUSTOM_RINGTONE,ContactsContract.ContactOptionsColumns.SEND_TO_VOICEMAIL