Stay organized with collections
Save and categorize content based on your preferences.
SettingsColumns
protected interface SettingsColumns
Summary
Constants
ACCOUNT_NAME
static val ACCOUNT_NAME: String
The name of the account instance to which this row belongs.
Type: TEXT
Value: "account_name"
ACCOUNT_TYPE
static val ACCOUNT_TYPE: String
The type of account to which this row belongs, which when paired with ACCOUNT_NAME
identifies a specific account.
Type: TEXT
Value: "account_type"
ANY_UNSYNCED
static val ANY_UNSYNCED: String
Read-only flag indicating if this SHOULD_SYNC
or any Groups.SHOULD_SYNC
under this account have been marked as unsynced.
Value: "any_unsynced"
DATA_SET
static val DATA_SET: String
The data set within the account that this row belongs to. This allows multiple sync adapters for the same account type to distinguish between each others' data. This is empty by default, and is completely optional. It only needs to be populated if multiple sync adapters are entering distinct data for the same account type and account name.
Type: TEXT
Value: "data_set"
SHOULD_SYNC
static val SHOULD_SYNC: String
Depending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source.
Type: INTEGER (boolean)
Value: "should_sync"
UNGROUPED_VISIBLE
static val UNGROUPED_VISIBLE: String
Flag indicating if contacts without any CommonDataKinds.GroupMembership
entries should be visible in any user interface.
Type: INTEGER (boolean)
Value: "ungrouped_visible"
UNGROUPED_WITH_PHONES
static val UNGROUPED_WITH_PHONES: String
Read-only count of Contacts
from a specific source that have no CommonDataKinds.GroupMembership
entries, and also have phone numbers.
Type: INTEGER
Value: "summ_phones"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ContactsContract.SettingsColumns\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSettingsColumns\n===============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/ContactsContract.SettingsColumns \"View this page in Java\") \n\n```\nprotected interface SettingsColumns\n```\n\n|--------------------------------------------------------|\n| [android.provider.ContactsContract.SettingsColumns](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ContactsContract.Settings](/reference/kotlin/android/provider/ContactsContract.Settings) |-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------| | [ContactsContract.Settings](/reference/kotlin/android/provider/ContactsContract.Settings) | Contacts-specific settings for various [Account](../accounts/Account.html#)'s. | |\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_NAME](#ACCOUNT_NAME:kotlin.String) The name of the account instance to which this row belongs. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](#ACCOUNT_TYPE:kotlin.String) The type of account to which this row belongs, which when paired with [ACCOUNT_NAME](#ACCOUNT_NAME:kotlin.String) identifies a specific account. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ANY_UNSYNCED](#ANY_UNSYNCED:kotlin.String) Read-only flag indicating if this [SHOULD_SYNC](#SHOULD_SYNC:kotlin.String) or any [Groups.SHOULD_SYNC](/reference/kotlin/android/provider/ContactsContract.GroupsColumns#SHOULD_SYNC:kotlin.String) under this account have been marked as unsynced. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA_SET](#DATA_SET:kotlin.String) The data set within the account that this row belongs to. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SHOULD_SYNC](#SHOULD_SYNC:kotlin.String) Depending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UNGROUPED_COUNT](#UNGROUPED_COUNT:kotlin.String) Read-only count of [Contacts](/reference/kotlin/android/provider/ContactsContract.Contacts) from a specific source that have no [CommonDataKinds.GroupMembership](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UNGROUPED_VISIBLE](#UNGROUPED_VISIBLE:kotlin.String) Flag indicating if contacts without any [CommonDataKinds.GroupMembership](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries should be visible in any user interface. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UNGROUPED_WITH_PHONES](#UNGROUPED_WITH_PHONES:kotlin.String) Read-only count of [Contacts](/reference/kotlin/android/provider/ContactsContract.Contacts) from a specific source that have no [CommonDataKinds.GroupMembership](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries, and also have phone numbers. |\n\nConstants\n---------\n\n### ACCOUNT_NAME\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ACCOUNT_NAME: String\n```\n\nThe name of the account instance to which this row belongs.\n\nType: TEXT \n\n Value: \"account_name\"\n\n### ACCOUNT_TYPE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ACCOUNT_TYPE: String\n```\n\nThe type of account to which this row belongs, which when paired with [ACCOUNT_NAME](#ACCOUNT_NAME:kotlin.String) identifies a specific account.\n\nType: TEXT \n\n Value: \"account_type\"\n\n### ANY_UNSYNCED\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ANY_UNSYNCED: String\n```\n\nRead-only flag indicating if this [SHOULD_SYNC](#SHOULD_SYNC:kotlin.String) or any [Groups.SHOULD_SYNC](/reference/kotlin/android/provider/ContactsContract.GroupsColumns#SHOULD_SYNC:kotlin.String) under this account have been marked as unsynced. \n\n Value: \"any_unsynced\"\n\n### DATA_SET\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DATA_SET: String\n```\n\nThe data set within the account that this row belongs to. This allows multiple sync adapters for the same account type to distinguish between each others' data. This is empty by default, and is completely optional. It only needs to be populated if multiple sync adapters are entering distinct data for the same account type and account name.\n\nType: TEXT \n\n Value: \"data_set\"\n\n### SHOULD_SYNC\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SHOULD_SYNC: String\n```\n\nDepending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source.\n\nType: INTEGER (boolean) \n\n Value: \"should_sync\"\n\n### UNGROUPED_COUNT\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val UNGROUPED_COUNT: String\n```\n\nRead-only count of [Contacts](/reference/kotlin/android/provider/ContactsContract.Contacts) from a specific source that have no [CommonDataKinds.GroupMembership](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries.\n\nType: INTEGER \n\n Value: \"summ_count\"\n\n### UNGROUPED_VISIBLE\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val UNGROUPED_VISIBLE: String\n```\n\nFlag indicating if contacts without any [CommonDataKinds.GroupMembership](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries should be visible in any user interface.\n\nType: INTEGER (boolean) \n\n Value: \"ungrouped_visible\"\n\n### UNGROUPED_WITH_PHONES\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val UNGROUPED_WITH_PHONES: String\n```\n\nRead-only count of [Contacts](/reference/kotlin/android/provider/ContactsContract.Contacts) from a specific source that have no [CommonDataKinds.GroupMembership](/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries, and also have phone numbers.\n\nType: INTEGER \n\n Value: \"summ_phones\""]]