public static final class ContactsContract.CommonDataKinds.Callable extends Object implements ContactsContract.DataColumnsWithJoins, ContactsContract.CommonDataKinds.CommonColumns
Convenient functionalities for "callable" data. Note that, this is NOT a separate data kind.
This URI allows the ContactsProvider to return a unified result for "callable" data
that users can use for calling purposes. ContactsContract.CommonDataKinds.Phone
and ContactsContract.CommonDataKinds.SipAddress
are the
current examples for "callable", but may be expanded to the other types.
Each returned row may have a different MIMETYPE and thus different interpretation for
each column. For example the meaning for ContactsContract.CommonDataKinds.Phone
's type is different than
ContactsContract.CommonDataKinds.SipAddress
's.
Modifier and Type | Field and Description |
---|---|
static Uri |
CONTENT_FILTER_URI
Similar to
ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI , but allows users to filter callable
data. |
static Uri |
CONTENT_URI
Similar to
ContactsContract.CommonDataKinds.Phone.CONTENT_URI , but returns callable data instead of only
phone numbers. |
static Uri |
ENTERPRISE_CONTENT_FILTER_URI
Similar to
ContactsContract.CommonDataKinds.Phone.ENTERPRISE_CONTENT_FILTER_URI , but allows users to filter
callable data. |
static String |
EXTRA_ADDRESS_BOOK_INDEX
Add this query parameter to a URI to get back row counts grouped by the address book
index as cursor extras.
|
static String |
EXTRA_ADDRESS_BOOK_INDEX_COUNTS
The array of group counts for the corresponding group.
|
static String |
EXTRA_ADDRESS_BOOK_INDEX_TITLES
The array of address book index titles, which are returned in the
same order as the data in the cursor.
|
_COUNT, _ID
CARRIER_PRESENCE, CARRIER_PRESENCE_VT_CAPABLE, DATA_VERSION, DATA1, DATA10, DATA11, DATA12, DATA13, DATA14, DATA15, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, DATA8, DATA9, HASH_ID, IS_PRIMARY, IS_READ_ONLY, IS_SUPER_PRIMARY, MIMETYPE, RAW_CONTACT_ID, RES_PACKAGE, SYNC1, SYNC2, SYNC3, SYNC4
AVAILABLE, AWAY, CAPABILITY_HAS_CAMERA, CAPABILITY_HAS_VIDEO, CAPABILITY_HAS_VOICE, CHAT_CAPABILITY, DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, PRESENCE, PRESENCE_CUSTOM_STATUS, PRESENCE_STATUS, STATUS, STATUS_ICON, STATUS_LABEL, STATUS_RES_PACKAGE, STATUS_TIMESTAMP
ACCOUNT_TYPE_AND_DATA_SET, AGGREGATION_MODE, BACKUP_ID, CONTACT_ID, DATA_SET, DELETED, METADATA_DIRTY, RAW_CONTACT_IS_READ_ONLY, RAW_CONTACT_IS_USER_PROFILE
CONTACT_LAST_UPDATED_TIMESTAMP, DISPLAY_NAME, HAS_PHONE_NUMBER, IN_DEFAULT_DIRECTORY, IN_VISIBLE_GROUP, IS_USER_PROFILE, LOOKUP_KEY, NAME_RAW_CONTACT_ID, PHOTO_FILE_ID, PHOTO_ID, PHOTO_THUMBNAIL_URI, PHOTO_URI
DISPLAY_NAME_ALTERNATIVE, DISPLAY_NAME_PRIMARY, DISPLAY_NAME_SOURCE, PHONETIC_NAME, PHONETIC_NAME_STYLE, SORT_KEY_ALTERNATIVE, SORT_KEY_PRIMARY
CUSTOM_RINGTONE, LAST_TIME_CONTACTED, PINNED, SEND_TO_VOICEMAIL, STARRED, TIMES_CONTACTED
CONTACT_CHAT_CAPABILITY, CONTACT_PRESENCE, CONTACT_STATUS, CONTACT_STATUS_ICON, CONTACT_STATUS_LABEL, CONTACT_STATUS_RES_PACKAGE, CONTACT_STATUS_TIMESTAMP
LAST_TIME_USED, TIMES_USED
DATA, LABEL, TYPE
TYPE_CUSTOM
Constructor and Description |
---|
Callable() |
public static final Uri CONTENT_URI
ContactsContract.CommonDataKinds.Phone.CONTENT_URI
, but returns callable data instead of only
phone numbers.public static final Uri CONTENT_FILTER_URI
ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI
, but allows users to filter callable
data.public static final Uri ENTERPRISE_CONTENT_FILTER_URI
ContactsContract.CommonDataKinds.Phone.ENTERPRISE_CONTENT_FILTER_URI
, but allows users to filter
callable data. This URI requires ContactsContract.DIRECTORY_PARAM_KEY
in
parameters, otherwise it will throw IllegalArgumentException.public static final String EXTRA_ADDRESS_BOOK_INDEX
Example: import android.provider.ContactsContract.Contacts; Uri uri = Contacts.CONTENT_URI.buildUpon() .appendQueryParameter(Contacts.EXTRA_ADDRESS_BOOK_INDEX, "true") .build(); Cursor cursor = getContentResolver().query(uri, new String[] {Contacts.DISPLAY_NAME}, null, null, null); Bundle bundle = cursor.getExtras(); if (bundle.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES) && bundle.containsKey(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)) { String sections[] = bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES); int counts[] = bundle.getIntArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS); }
public static final String EXTRA_ADDRESS_BOOK_INDEX_TITLES
TYPE: String[]
public static final String EXTRA_ADDRESS_BOOK_INDEX_COUNTS
TYPE: int[]