| java.lang.Object | |
| ↳ | android.provider.ContactsContract |
The contract between the contacts provider and applications. Contains
definitions for the supported URIs and columns. These APIs supersede
ContactsContract.Contacts.
ContactsContract defines an extensible database of contact-related information. Contact information is stored in a three-tier data model:
The
ContactsContract.Datatable contains all kinds of personal data: phone numbers, email addresses etc. The list of data kinds that can be stored in this table is open-ended. There is a predefined set of common kinds, but any application can add its own data kinds.A row in the
ContactsContract.RawContactstable represents a set of Data describing a person and associated with a single account.A row in the
ContactsContract.Contactstable represents an aggregate of one or more RawContacts presumably describing the same person.
Other tables include:
ContactsContract.Groups, which contains information about raw contact groups - the current API does not support the notion of groups spanning multiple accounts.
ContactsContract.StatusUpdates, which contains social status updates including IM availability.
ContactsContract.AggregationExceptions, which is used for manual aggregation and disaggregation of raw contacts
ContactsContract.Settings, which contains visibility and sync settings for accounts and groups.
ContactsContract.SyncState, which contains free-form data maintained on behalf of sync adapters
ContactsContract.PhoneLookup, which is used for quick caller-ID lookup
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ContactsContract.AggregationExceptions | Constants for the contact aggregation exceptions table, which contains aggregation rules overriding those used by automatic aggregation. |
||||||||||
| ContactsContract.BaseSyncColumns | Generic columns for use by sync adapters. | ||||||||||
| ContactsContract.CommonDataKinds | Container for definitions of common data types stored in the ContactsContract.Data
table. |
||||||||||
| ContactsContract.ContactOptionsColumns | |||||||||||
| ContactsContract.ContactStatusColumns | |||||||||||
| ContactsContract.Contacts | Constants for the contacts table, which contains a record per aggregate of raw contacts representing the same person. | ||||||||||
| ContactsContract.ContactsColumns | |||||||||||
| ContactsContract.Data | Constants for the data table, which contains data points tied to a raw contact. |
||||||||||
| ContactsContract.DataColumns | Columns in the Data table. | ||||||||||
| ContactsContract.DataColumnsWithJoins | Combines all columns returned by ContactsContract.Data table queries. |
||||||||||
| ContactsContract.Groups | Constants for the groups table. | ||||||||||
| ContactsContract.GroupsColumns | |||||||||||
| ContactsContract.Intents | Contains helper classes used to create or manage Intents
that involve contacts. |
||||||||||
| ContactsContract.PhoneLookup | A table that represents the result of looking up a phone number, for example for caller ID. | ||||||||||
| ContactsContract.PhoneLookupColumns | |||||||||||
| ContactsContract.Presence | This class is deprecated. This old name was never meant to be made public. Do not use. | ||||||||||
| ContactsContract.PresenceColumns | Additional data mixed in with ContactsContract.ContactStatusColumns to link
back to specific _ID entries. |
||||||||||
| ContactsContract.QuickContact | Helper methods to display QuickContact dialogs that allow users to pivot on
a specific Contacts entry. |
||||||||||
| ContactsContract.RawContacts | Constants for the raw contacts table, which contains the base contact information per sync source. | ||||||||||
| ContactsContract.RawContactsColumns | |||||||||||
| ContactsContract.RawContactsEntity | Constants for the raw contacts entities table, which can be though of as an outer join of the raw_contacts table with the data table. |
||||||||||
| ContactsContract.Settings |
Contacts-specific settings for various |
||||||||||
| ContactsContract.SettingsColumns | |||||||||||
| ContactsContract.StatusColumns | Social status update columns. | ||||||||||
| ContactsContract.StatusUpdates |
A status update is linked to a |
||||||||||
| ContactsContract.SyncColumns | Columns that appear when each row of a table belongs to a specific account, including sync information that an account may need. | ||||||||||
| ContactsContract.SyncState | A table provided for sync adapters to use for storing private sync state data. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | AUTHORITY | The authority for the contacts provider | |||||||||
| Uri | AUTHORITY_URI | A content:// style uri to the authority for the contacts provider | |||||||||
| String | CALLER_IS_SYNCADAPTER | An optional insert, update or delete URI parameter that allows the caller to specify that it is a sync adapter. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
The authority for the contacts provider
A content:// style uri to the authority for the contacts provider
An optional insert, update or delete URI parameter that allows the caller
to specify that it is a sync adapter. The default value is false. If true
the dirty flag is not automatically set and the "syncToNetwork" parameter
is set to false when calling
notifyChange(android.net.Uri, android.database.ContentObserver, boolean).