Added in API level 5

DataColumns


protected interface DataColumns
android.provider.ContactsContract.DataColumns

Columns in the Data table.

Summary

Constants
static String

Carrier presence information.

static Int

Indicates that the entry is Video Telephony (VT) capable on the current carrier.

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific.

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

Generic data column, the meaning is MIMETYPE specific

static String

The version of this data record.

static String

Whether this is the primary entry of its kind for the raw contact it belongs to.

static String

The "read-only" flag: "0" by default, "1" if the row cannot be modified or deleted except by a sync adapter.

static String

Whether this is the primary entry of its kind for the aggregate contact it belongs to.

static String

The MIME type of the item represented by this row.

static String

The flattened android.content.ComponentName of a that is the preferred PhoneAccountHandle to call the contact with.

static String

The ID of a that is the preferred PhoneAccountHandle to call the contact with.

static String

A reference to the RawContacts._ID that this data belongs to.

static String

The package name to use when creating Resources objects for this data row.

static String

Generic column for use by sync adapters.

static String

Generic column for use by sync adapters.

static String

Generic column for use by sync adapters.

static String

Generic column for use by sync adapters.

Constants

CARRIER_PRESENCE

Added in API level 23
Deprecated in API level 31
static val CARRIER_PRESENCE: String

Deprecated: The contacts database will only show presence information on devices where android.telephony.CarrierConfigManager#KEY_USE_RCS_PRESENCE_BOOL is true, otherwise use android.telephony.ims.RcsUceAdapter.

Carrier presence information.

Type: INTEGER (A bitmask of CARRIER_PRESENCE_* fields)

Value: "carrier_presence"

CARRIER_PRESENCE_VT_CAPABLE

Added in API level 23
Deprecated in API level 31
static val CARRIER_PRESENCE_VT_CAPABLE: Int

Deprecated: Same as DataColumns.CARRIER_PRESENCE.

Indicates that the entry is Video Telephony (VT) capable on the current carrier. An allowed bitmask of CARRIER_PRESENCE.

Value: 1

DATA1

Added in API level 5
static val DATA1: String

Generic data column, the meaning is MIMETYPE specific

Value: "data1"

DATA10

Added in API level 5
static val DATA10: String

Generic data column, the meaning is MIMETYPE specific

Value: "data10"

DATA11

Added in API level 5
static val DATA11: String

Generic data column, the meaning is MIMETYPE specific

Value: "data11"

DATA12

Added in API level 5
static val DATA12: String

Generic data column, the meaning is MIMETYPE specific

Value: "data12"

DATA13

Added in API level 5
static val DATA13: String

Generic data column, the meaning is MIMETYPE specific

Value: "data13"

DATA14

Added in API level 5
static val DATA14: String

Generic data column, the meaning is MIMETYPE specific

Value: "data14"

DATA15

Added in API level 5
static val DATA15: String

Generic data column, the meaning is MIMETYPE specific. By convention, this field is used to store BLOBs (binary data).

Value: "data15"

DATA2

Added in API level 5
static val DATA2: String

Generic data column, the meaning is MIMETYPE specific

Value: "data2"

DATA3

Added in API level 5
static val DATA3: String

Generic data column, the meaning is MIMETYPE specific

Value: "data3"

DATA4

Added in API level 5
static val DATA4: String

Generic data column, the meaning is MIMETYPE specific

Value: "data4"

DATA5

Added in API level 5
static val DATA5: String

Generic data column, the meaning is MIMETYPE specific

Value: "data5"

DATA6

Added in API level 5
static val DATA6: String

Generic data column, the meaning is MIMETYPE specific

Value: "data6"

DATA7

Added in API level 5
static val DATA7: String

Generic data column, the meaning is MIMETYPE specific

Value: "data7"

DATA8

Added in API level 5
static val DATA8: String

Generic data column, the meaning is MIMETYPE specific

Value: "data8"

DATA9

Added in API level 5
static val DATA9: String

Generic data column, the meaning is MIMETYPE specific

Value: "data9"

DATA_VERSION

Added in API level 5
static val DATA_VERSION: String

The version of this data record. This is a read-only value. The data column is guaranteed to not change without the version going up. This value is monotonically increasing.

Type: INTEGER

Value: "data_version"

IS_PRIMARY

Added in API level 5
static val IS_PRIMARY: String

Whether this is the primary entry of its kind for the raw contact it belongs to.

Type: INTEGER (if set, non-0 means true)

Value: "is_primary"

IS_READ_ONLY

Added in API level 11
static val IS_READ_ONLY: String

The "read-only" flag: "0" by default, "1" if the row cannot be modified or deleted except by a sync adapter. See ContactsContract.CALLER_IS_SYNCADAPTER.

Type: INTEGER

Value: "is_read_only"

IS_SUPER_PRIMARY

Added in API level 5
static val IS_SUPER_PRIMARY: String

Whether this is the primary entry of its kind for the aggregate contact it belongs to. Any data record that is "super primary" must also be "primary".

Type: INTEGER (if set, non-0 means true)

Value: "is_super_primary"

MIMETYPE

Added in API level 5
static val MIMETYPE: String

The MIME type of the item represented by this row.

Value: "mimetype"

PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME

Added in API level 28
static val PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME: String

The flattened android.content.ComponentName of a that is the preferred PhoneAccountHandle to call the contact with.

On a multi-SIM device this field can be used in a CommonDataKinds.Phone row to indicate the PhoneAccountHandle to call the number with, instead of using android.telecom.TelecomManager#getDefaultOutgoingPhoneAccount(String) or asking every time.

android.telecom.TelecomManager#placeCall(Uri, android.os.Bundle) should be called with android.telecom.TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE set to the PhoneAccountHandle using the ComponentName from this field.

Value: "preferred_phone_account_component_name"

PREFERRED_PHONE_ACCOUNT_ID

Added in API level 28
static val PREFERRED_PHONE_ACCOUNT_ID: String

The ID of a that is the preferred PhoneAccountHandle to call the contact with. Used by CommonDataKinds.Phone.

On a multi-SIM device this field can be used in a CommonDataKinds.Phone row to indicate the PhoneAccountHandle to call the number with, instead of using android.telecom.TelecomManager#getDefaultOutgoingPhoneAccount(String) or asking every time.

android.telecom.TelecomManager#placeCall(Uri, android.os.Bundle) should be called with android.telecom.TelecomManager#EXTRA_PHONE_ACCOUNT_HANDLE set to the PhoneAccountHandle using the id from this field.

Value: "preferred_phone_account_id"

RAW_CONTACT_ID

Added in API level 5
static val RAW_CONTACT_ID: String

A reference to the RawContacts._ID that this data belongs to.

Value: "raw_contact_id"

RES_PACKAGE

Added in API level 21
static val RES_PACKAGE: String

The package name to use when creating Resources objects for this data row. This value is only designed for use when building user interfaces, and should not be used to infer the owner.

Value: "res_package"

SYNC1

Added in API level 5
static val SYNC1: String

Generic column for use by sync adapters.

Value: "data_sync1"

SYNC2

Added in API level 5
static val SYNC2: String

Generic column for use by sync adapters.

Value: "data_sync2"

SYNC3

Added in API level 5
static val SYNC3: String

Generic column for use by sync adapters.

Value: "data_sync3"

SYNC4

Added in API level 5
static val SYNC4: String

Generic column for use by sync adapters.

Value: "data_sync4"