| java.lang.Object | |
| ↳ | android.provider.Contacts.People |
This table contains people.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Contacts.People.ContactMethods | A subdirectory of a single person that contains all of their ContactMethods. | ||||||||||
| Contacts.People.Extensions | The extensions for a person | ||||||||||
| Contacts.People.Phones | A sub directory of a single person that contains all of their Phones. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Uri | CONTENT_FILTER_URI | The content:// style URL for filtering people by name. | |||||||||
| String | CONTENT_ITEM_TYPE | The MIME type of a CONTENT_URI subdirectory of a single person. | |||||||||
| String | CONTENT_TYPE | The MIME type of CONTENT_URI providing a directory of people. | |||||||||
| Uri | CONTENT_URI | The content:// style URL for this table | |||||||||
| String | DEFAULT_SORT_ORDER | The default sort order for this table | |||||||||
| Uri | DELETED_CONTENT_URI | The content:// style URL for the table that holds the deleted contacts. | |||||||||
| String | NON_SYNCABLE_ACCOUNT | Used to indicate that this account is not synced | |||||||||
| String | PRIMARY_EMAIL_ID | The ID of the persons preferred email. | |||||||||
| String | PRIMARY_ORGANIZATION_ID | The ID of the persons preferred organization. | |||||||||
| String | PRIMARY_PHONE_ID | The ID of the persons preferred phone number. | |||||||||
| String | _SYNC_ACCOUNT | The account that was used to sync the entry to the device. | |||||||||
| String | _SYNC_DIRTY | Used to indicate that local, unsynced, changes are present. | |||||||||
| String | _SYNC_ID | The unique ID for a row assigned by the sync source. | |||||||||
| String | _SYNC_LOCAL_ID | Used in temporary provider while syncing, always NULL for rows in persistent providers. | |||||||||
| String | _SYNC_MARK | Used only in persistent providers, and only during merging. | |||||||||
| String | _SYNC_TIME | The last time, from the sync source's point of view, that this row has been synchronized. | |||||||||
| String | _SYNC_VERSION | The version of the row, as assigned by the server. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
| |||||||||||
From interface
android.provider.Contacts.PeopleColumns
| |||||||||||
From interface
android.provider.Contacts.PhonesColumns
| |||||||||||
From interface
android.provider.Contacts.PresenceColumns
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a person to a group referred to by name.
| |||||||||||
Adds a person to a group.
| |||||||||||
Adds a person to the My Contacts group.
| |||||||||||
Creates a new contacts and adds it to the "My Contacts" group.
| |||||||||||
Opens an InputStream for the person's photo and returns the photo as a Bitmap.
| |||||||||||
Mark a person as having been contacted.
| |||||||||||
Opens an InputStream for the person's photo and returns the photo as a Bitmap.
| |||||||||||
Set the photo for this person.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
The content:// style URL for filtering people by name. The filter argument should be passed as an additional path segment after this URI.
The MIME type of a CONTENT_URI subdirectory of a single person.
The MIME type of CONTENT_URI providing a directory of people.
The content:// style URL for this table
The default sort order for this table
The content:// style URL for the table that holds the deleted contacts.
Used to indicate that this account is not synced
The ID of the persons preferred email.
Type: INTEGER (foreign key to contact_methods table on the _ID field)
The ID of the persons preferred organization.
Type: INTEGER (foreign key to organizations table on the _ID field)
The ID of the persons preferred phone number.
Type: INTEGER (foreign key to phones table on the _ID field)
The account that was used to sync the entry to the device.
Type: TEXT
Used to indicate that local, unsynced, changes are present.
Type: INTEGER (long)
The unique ID for a row assigned by the sync source. NULL if the row has never been synced.
Type: TEXT
Used in temporary provider while syncing, always NULL for rows in persistent providers.
Type: INTEGER (long)
Used only in persistent providers, and only during merging.
Type: INTEGER (long)
The last time, from the sync source's point of view, that this row has been synchronized.
Type: INTEGER (long)
The version of the row, as assigned by the server.
Type: TEXT
Adds a person to a group referred to by name.
| resolver | the resolver to use |
|---|---|
| personId | the person to add to the group |
| groupName | the name of the group to add the contact to |
| IllegalStateException | if the group can't be found |
|---|
Adds a person to a group.
| resolver | the resolver to use |
|---|---|
| personId | the person to add to the group |
| groupId | the group to add the person to |
Adds a person to the My Contacts group.
| resolver | the resolver to use |
|---|---|
| personId | the person to add to the group |
| IllegalStateException | if the My Contacts group can't be found |
|---|
Creates a new contacts and adds it to the "My Contacts" group.
| resolver | the ContentResolver to use |
|---|---|
| values | the values to use when creating the contact |
Opens an InputStream for the person's photo and returns the photo as a Bitmap. If the person's photo isn't present returns the placeholderImageResource instead.
| context | the Context |
|---|---|
| person | the person whose photo should be used |
| placeholderImageResource | the image resource to use if the person doesn't have a photo |
| options | the decoding options, can be set to null |
Mark a person as having been contacted.
| resolver | the ContentResolver to use |
|---|---|
| personId | the person who was contacted |
Opens an InputStream for the person's photo and returns the photo as a Bitmap. If the person's photo isn't present returns the placeholderImageResource instead.
| person | the person whose photo should be used |
|---|
Set the photo for this person. data may be null
| cr | the ContentResolver to use |
|---|---|
| person | the Uri of the person whose photo is to be updated |
| data | the byte[] that represents the photo |