Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#inhconstants)

# ContactsContract.SyncColumns

*** ** * ** ***

` protected static interface ContactsContract.SyncColumns `   
` implements https://developer.android.com/reference/android/provider/ContactsContract.BaseSyncColumns `

|---|
| android.provider.ContactsContract.SyncColumns |

Known indirect subclasses [ContactsContract.Contacts.Entity](https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Entity), [ContactsContract.Groups](https://developer.android.com/reference/android/provider/ContactsContract.Groups), [ContactsContract.RawContacts](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts) [ContactsContract.Contacts.Entity](https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Entity) A sub-directory of a contact that contains all of its `https://developer.android.com/reference/android/provider/ContactsContract.RawContacts` as well as `https://developer.android.com/reference/android/provider/ContactsContract.Data` rows.
[ContactsContract.Groups](https://developer.android.com/reference/android/provider/ContactsContract.Groups) Constants for the groups table. [ContactsContract.RawContacts](https://developer.android.com/reference/android/provider/ContactsContract.RawContacts) Constants for the raw contacts table, which contains one row of contact information for each person in each synced account.   

*** ** * ** ***

Columns that appear when each row of a table belongs to a specific account, including sync information that an account may need.
**See also:**

- `https://developer.android.com/reference/android/provider/ContactsContract.RawContacts`
- `https://developer.android.com/reference/android/provider/ContactsContract.Groups`

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#ACCOUNT_NAME` The name of the account instance to which this row belongs, which when paired with `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#ACCOUNT_TYPE` identifies a specific account. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#ACCOUNT_TYPE` The type of account to which this row belongs, which when paired with `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#ACCOUNT_NAME` identifies a specific account. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#DIRTY` Flag indicating that `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#VERSION` has changed, and this row needs to be synchronized by its owning account. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#SOURCE_ID` String that uniquely identifies this row to its source account. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#VERSION` Version number that is updated whenever this row or its related data changes. |

### Inherited constants

From interface `https://developer.android.com/reference/android/provider/ContactsContract.BaseSyncColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/ContactsContract.BaseSyncColumns#SYNC1`

Generic column for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/ContactsContract.BaseSyncColumns#SYNC2`

Generic column for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/ContactsContract.BaseSyncColumns#SYNC3`

Generic column for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/ContactsContract.BaseSyncColumns#SYNC4`

Generic column for use by sync adapters.

## Constants

### ACCOUNT_NAME

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

```
public static final String ACCOUNT_NAME
```

The name of the account instance to which this row belongs, which when paired with `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#ACCOUNT_TYPE` identifies a specific account.

Type: TEXT

<br />

<br />

Constant Value: "account_name"

### ACCOUNT_TYPE

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

```
public static final String ACCOUNT_TYPE
```

The type of account to which this row belongs, which when paired with `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#ACCOUNT_NAME` identifies a specific account.

Type: TEXT

<br />

<br />

Constant Value: "account_type"

### DIRTY

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

```
public static final String DIRTY
```

Flag indicating that `https://developer.android.com/reference/android/provider/ContactsContract.SyncColumns#VERSION` has changed, and this row needs to be synchronized by its owning account.

Type: INTEGER (boolean)

<br />

<br />

Constant Value: "dirty"

### SOURCE_ID

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

```
public static final String SOURCE_ID
```

String that uniquely identifies this row to its source account.

Type: TEXT

<br />

<br />

Constant Value: "sourceid"

### VERSION

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

```
public static final String VERSION
```

Version number that is updated whenever this row or its related data changes.

Type: INTEGER

<br />

<br />

Constant Value: "version"