java.lang.Object | |||
↳ | android.content.ContentProvider | ||
↳ | com.android.providers.contacts.SQLiteContentProvider | ||
↳ | com.android.providers.contacts.ContactsProvider2 |
Contacts content provider. The contract between this provider and applications is defined in ContactsContract.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContactsProvider2.CommonDataRowHandler | |||||||||||
ContactsProvider2.CustomDataRowHandler | |||||||||||
ContactsProvider2.EmailDataRowHandler | |||||||||||
ContactsProvider2.GroupIdCacheEntry | An entry in group id cache. | ||||||||||
ContactsProvider2.GroupMembershipRowHandler | |||||||||||
ContactsProvider2.NicknameDataRowHandler | |||||||||||
ContactsProvider2.OrganizationDataRowHandler | |||||||||||
ContactsProvider2.PhoneDataRowHandler | |||||||||||
ContactsProvider2.PhotoDataRowHandler | |||||||||||
ContactsProvider2.StructuredNameRowHandler | |||||||||||
ContactsProvider2.StructuredPostalRowHandler |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_ACCOUNT_TYPE | ||||||||||
String | FEATURE_LEGACY_HOSTED_OR_GOOGLE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.content.ComponentCallbacks2
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.android.providers.contacts.SQLiteContentProvider
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete a data row provided that it is one of the allowed mime types.
| |||||||||||
Deletes all
NAME_LOOKUP table rows associated with the specified data element. | |||||||||||
Inserts a record in the
NAME_LOOKUP table. | |||||||||||
Normalizes the nickname and inserts it in the name lookup table.
| |||||||||||
Inserts a status update.
| |||||||||||
Returns the contact Id for the contact identified by the lookupKey.
| |||||||||||
Updates a raw contact display name based on data rows, e.g.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The equivalent of the
delete(Uri, String, String[]) method, but invoked within a transaction. | |||||||||||
The equivalent of the
insert(Uri, ContentValues) method, but invoked within a transaction. | |||||||||||
Returns true if the specified account type is writable.
| |||||||||||
The equivalent of the
update(Uri, ContentValues, String, String[]) method, but invoked within a transaction. | |||||||||||
Verifies that the contacts database is properly configured for the current locale.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.android.providers.contacts.SQLiteContentProvider
| |||||||||||
From class
android.content.ContentProvider
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.accounts.OnAccountsUpdateListener
| |||||||||||
From interface
android.content.ComponentCallbacks
| |||||||||||
From interface
android.content.ComponentCallbacks2
| |||||||||||
From interface
android.database.sqlite.SQLiteTransactionListener
|
Delete a data row provided that it is one of the allowed mime types.
Deletes all NAME_LOOKUP
table rows associated with the specified data element.
Inserts a record in the NAME_LOOKUP
table.
Normalizes the nickname and inserts it in the name lookup table.
Returns the contact Id for the contact identified by the lookupKey. Robust against changes in the lookup key: if the key has changed, will look up the contact by the raw contact IDs or name encoded in the lookup key.
Updates a raw contact display name based on data rows, e.g. structured name, organization, email etc.
The equivalent of the delete(Uri, String, String[])
method, but invoked within a transaction.
The equivalent of the insert(Uri, ContentValues)
method, but invoked within a transaction.
Returns true if the specified account type is writable.
The equivalent of the update(Uri, ContentValues, String, String[])
method, but invoked within a transaction.
Verifies that the contacts database is properly configured for the current locale. If not, changes the database locale to the current locale using an asynchronous task. This needs to be done asynchronously because the process involves rebuilding large data structures (name lookup, sort keys), which can take minutes on a large set of contacts.