Useful column names for CRUD contacts.
All
method | description |
---|
Member | description |
---|---|
public static final String ITEM_CONTACT_ID |
The unique ID for a row of the Contacts table. Table: Contacts Type: INTEGER (long) Constant Value: "_id" Mark:Android native {@see android.provider.ContactsContract.Contacts#_ID} Supported Products:All |
public static final String ITEM_CONTACT_ID_IN_DATA |
The id of the row in the Contacts table that this data belongs to. Table: Data Type: INTEGER (long) Constant Value: "contact_id" Mark:Android native {@see android.provider.ContactsContract.Data#CONTACT_ID} Supported Products:All |
public static final String ITEM_RAW_CONTACTS_ID_IN_DATA |
The id of the row in the RawContacts table that this data belongs to. Table: Data Type: INTEGER (long) Constant Value: "raw_contact_id" Mark:Android native {@see android.provider.ContactsContract.Data#RAW_CONTACT_ID} Supported Products:All |
public static final String ITEM_CONTACT_ID_IN_RAW |
A reference to the _ID of the Contacts table that this data of RawContacts table belongs to. Table: RawContacts Type: INTEGER (long) Constant Value: "contact_id" Mark:Android native {@see android.provider.ContactsContract.RawContacts#CONTACT_ID} Supported Products:All |
public static final String ITEM_CONTACT_LOOKUP |
An opaque value that contains hints on how to find the contact if its row id changed
as a result of a sync or aggregation. Table: Contacts Type: TEXT Constant Value: "lookup" Mark:Android native {@see android.provider.ContactsContract.Contacts#LOOKUP_KEY} Supported Products:All |
public static final String ITEM_PHOTO_BLOB |
Binary data of a photo image. Table: Data Type: byte[] Constant Value: "data15" Mark:Android native {@see android.provider.ContactsContract.Data#DATA15}.But Special used in GS phone system. Supported Products:All |
public static final String ITEM_PHONE_NUMBER |
The phone number as the user entered it. Table: Phone Type: TEXT Constant Value: "lookup" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#NUMBER} Supported Products:All |
public static final String ITEM_DISPLAY_NAME |
The display name for the contact. Table: Phone Type: TEXT Constant Value: "display_name" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#DISPLAY_NAME}. Supported Products:All |
public static final String ITEM_DISPLAY_NAME_ALTER |
An alternative representation of the display name, such as "family name first" instead
of "given name first" for Western names. If an alternative is not available, the values
should be the same as DISPLAY_NAME_PRIMARY. A contacts provider is free to provide alternatives as necessary for its target market. For example the default Android Open Source Project contacts provider currently provides an alternative in a single case: if the display name is based on the structured name and the structured name follows the Western full name style, then the field contains the "family name first" version of the full name. Other cases may be added later. Table: Phone Type: TEXT Constant Value: "display_name_alt" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#DISPLAY_NAME_ALTERNATIVE} Supported Products:All |
public static final String ITEM_RINGTONE |
URI for a custom ringtone associated with the contact. If null or missing, the default
ringtone is used. Table: RawContacts Type: TEXT Constant Value: "custom_ringtone" Mark:Android native {@see android.provider.ContactsContract.RawContacts#CUSTOM_RINGTONE} Supported Products:All |
public static final String ITEM_RINGTONE_IN_PHONE |
URI for a custom ringtone associated with the contact. If null or missing, the default
ringtone is used. Table: Phone Type: TEXT Constant Value: "custom_ringtone" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#CUSTOM_RINGTONE} Supported Products:All |
public static final String ITEM_ACCOUNT_ID |
Mark a local account which this data is belong to. Table: Data Type: INTEGER (long) Constant Value: "data11" Mark:Android native {@see android.provider.ContactsContract.Data#DATA11} .But Special used in GS phone system. Supported Products:All |
public static final String ITEM_SORT_KEY_T9 |
Sort key that based on the t9 value of the t9 value of display name. Table: RawContacts Type: TEXT Constant Value: "sort_key_t9" Mark:New column. Supported Products:All |
public static final String ITEM_SORT_KEY_T9_FL |
Sort key that based on the t9 value of the first letter of the display name. Table: RawContacts Type: TEXT Constant Value: "sort_key_t9_first_letter" Mark:New column. Supported Products:All |
public static final String ITEM_SORT_KEY_PRIMARY |
Sort key that takes into account locale-based traditions for sorting names in address books. Table: Phone Type: TEXT Constant Value: "sort_key" Mark:New column. Supported Products:All |
public static final String ITEM_SORT_KEY_ALTERNATIVE |
Sort key that takes into account locale-based traditions for sorting names in address books. Table: Phone Type: TEXT Constant Value: "sort_key_alt" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#SORT_KEY_ALTERNATIVE} Supported Products:All |
public static final String ITEM_MIMETYPE |
The MIME type of the item represented by this row. Table: Data Type: TEXT Constant Value: "mimetype" Mark:Android native {@see android.provider.ContactsContract.Data#MIMETYPE} Supported Products:All |
public static final String ITEM_MIMETYPE_PHOTO |
A new MIME type used when storing photo in Data table. Mark:New MIME type. Supported Products:All |
public static final String ITEM_MIMETYPE_GROUP |
A MIME type used when storing group in Data table. Mark:Android native. {@see android.provider.ContactsContract.CommonDataKinds.GroupMembership#CONTENT_ITEM_TYPE} Supported Products:All |
public static final String ITEM_PHOTO_DIRECTORY |
The directory twig for this sub-table. Table: Contacts.Photo Type: TEXT Constant Value: "photo" Mark:Android native {@see android.provider.ContactsContract.Contacts.Photo#CONTENT_DIRECTORY} Supported Products:All |
public static final String ITEM_GROUP_ID |
The unique ID for a row of the Groups table. Table: Groups Type: TEXT Constant Value: "_id" Mark:Android native {@see android.provider.ContactsContract.Groups#_ID} Supported Products:All |
public static final String ITEM_GROUP_DELETED_FLAG |
The "deleted" flag: "0" by default, "1" if the row has been marked for deletion.
When delete(Uri, String, String[]) is called on a group, it is marked for deletion.
The sync adaptor deletes the group on the server and then calls ContactResolver.delete
once more, this time setting the the CALLER_IS_SYNCADAPTER query parameter to finalize
the data removal. Table: Groups Type: INTEGER (int) Constant Value: "deleted" Mark:Android native {@see android.provider.ContactsContract.Groups#DELETED} Supported Products:All |
public static final String ITEM_GROUP_PHOTO |
The row id of the group that this group membership refers to. Table: Groups Type: INTEGER (int) Constant Value: "data1" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.GroupMembership#GROUP_ROW_ID} Supported Products:All |
public static final String ITEM_GROUP_THUMBERNAIL |
Thumbnail of a group. Table: Groups Type: TEXT Constant Value: "thumbnail" Mark: New column Supported Products:All |
public static final String ITEM_PHONE_LABEL |
the first char of display name for the contacts.
"family name first" version of the full name. Other cases may be added later. Table: Phone Type: TEXT Constant Value: "phonebook_label" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#DISPLAY_NAME_ALTERNATIVE} |
public static final String ITEM_PHONE_LABEL_ALT |
the first char of alternative display name for the contacts.
"family name first" version of the full name. Other cases may be added later. Table: Phone Type: TEXT Constant Value: "phonebook_label_alt" Mark:Android native {@see android.provider.ContactsContract.CommonDataKinds.Phone#DISPLAY_NAME_ALTERNATIVE} |