Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Data

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Data "View this page in Java")

```
class Data : BaseColumns, ContactsContract.DataColumns
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.provider.ContactsContract.Contacts.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts.Data#) |

A sub-directory of a single contact that contains all of the constituent raw contact `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data` rows. This directory can be used either with a `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts#CONTENT_URI:android.net.Uri` or `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI:android.net.Uri`.

## Summary

| Constants ||
|---|---|
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts.Data#CONTENT_DIRECTORY:kotlin.String` The directory twig for this sub-table |

| Inherited constants ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#CARRIER_PRESENCE:kotlin.String` Carrier presence information. Type: INTEGER (A bitmask of CARRIER_PRESENCE_\* fields) <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#CARRIER_PRESENCE_VT_CAPABLE:kotlin.Int` Indicates that the entry is Video Telephony (VT) capable on the current carrier. An allowed bitmask of `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#CARRIER_PRESENCE:kotlin.String`. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA1:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA10:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA11:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA12:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA13:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA14:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA15:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific. By convention, this field is used to store BLOBs (binary data). <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA2:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA3:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA4:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA5:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA6:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA7:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA8:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA9:kotlin.String` Generic data column, the meaning is `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` specific <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#DATA_VERSION:kotlin.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 <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#IS_PRIMARY:kotlin.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) <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#IS_READ_ONLY:kotlin.String` The "read-only" flag: "0" by default, "1" if the row cannot be modified or deleted except by a sync adapter. See `https://developer.android.com/reference/kotlin/android/provider/ContactsContract#CALLER_IS_SYNCADAPTER:kotlin.String`. Type: INTEGER <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#IS_SUPER_PRIMARY:kotlin.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) <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String` The MIME type of the item represented by this row. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#PREFERRED_PHONE_ACCOUNT_COMPONENT_NAME:kotlin.String` The flattened `https://developer.android.com/reference/kotlin/android/content/ComponentName.html#` of a `https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle.html#` that is the preferred `PhoneAccountHandle` to call the contact with. On a multi-SIM device this field can be used in a `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Phone` row to indicate the `https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle.html#` to call the number with, instead of using `https://developer.android.com/reference/kotlin/android/telecom/TelecomManager.html#getDefaultOutgoingPhoneAccount(kotlin.String)` or asking every time. `https://developer.android.com/reference/kotlin/android/telecom/TelecomManager.html#placeCall(android.net.Uri,%20android.os.Bundle)` should be called with `https://developer.android.com/reference/kotlin/android/telecom/TelecomManager.html#EXTRA_PHONE_ACCOUNT_HANDLE:kotlin.String` set to the `https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle.html#` using the `https://developer.android.com/reference/kotlin/android/content/ComponentName.html#` from this field. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#PREFERRED_PHONE_ACCOUNT_ID:kotlin.String` The ID of a `https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle.html#` that is the preferred `PhoneAccountHandle` to call the contact with. Used by `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Phone`. On a multi-SIM device this field can be used in a `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Phone` row to indicate the `https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle.html#` to call the number with, instead of using `https://developer.android.com/reference/kotlin/android/telecom/TelecomManager.html#getDefaultOutgoingPhoneAccount(kotlin.String)` or asking every time. `https://developer.android.com/reference/kotlin/android/telecom/TelecomManager.html#placeCall(android.net.Uri,%20android.os.Bundle)` should be called with `https://developer.android.com/reference/kotlin/android/telecom/TelecomManager.html#EXTRA_PHONE_ACCOUNT_HANDLE:kotlin.String` set to the `https://developer.android.com/reference/kotlin/android/telecom/PhoneAccountHandle.html#` using the id from this field. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#RAW_CONTACT_ID:kotlin.String` A reference to the `https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String` that this data belongs to. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#RES_PACKAGE:kotlin.String` The package name to use when creating `https://developer.android.com/reference/kotlin/android/content/res/Resources.html#` 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. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#SYNC1:kotlin.String` Generic column for use by sync adapters. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#SYNC2:kotlin.String` Generic column for use by sync adapters. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#SYNC3:kotlin.String` Generic column for use by sync adapters. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#SYNC4:kotlin.String` Generic column for use by sync adapters. <br /> | ||
| From class `https://developer.android.com/reference/kotlin/android/provider/BaseColumns` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String` The count of rows in a directory. Type: INTEGER <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String` The unique ID for a row. Type: INTEGER (long) <br /> | ||

## Constants

### CONTENT_DIRECTORY

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CONTENT_DIRECTORY: String
```

The directory twig for this sub-table

    Value: "data"