Stay organized with collections
Save and categorize content based on your preferences.
protected
static
interface
ContactsContract.SettingsColumns
android.provider.ContactsContract.SettingsColumns
|
Known indirect subclasses
|
Summary
Constants
ACCOUNT_NAME
public static final String ACCOUNT_NAME
The name of the account instance to which this row belongs.
Type: TEXT
Constant Value:
"account_name"
ACCOUNT_TYPE
public static final String ACCOUNT_TYPE
The type of account to which this row belongs, which when paired with
ACCOUNT_NAME
identifies a specific account.
Type: TEXT
Constant Value:
"account_type"
ANY_UNSYNCED
public static final String ANY_UNSYNCED
Read-only flag indicating if this SHOULD_SYNC
or any
Groups.SHOULD_SYNC
under this account have been marked as
unsynced.
Constant Value:
"any_unsynced"
DATA_SET
public static final String DATA_SET
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
Constant Value:
"data_set"
SHOULD_SYNC
public static final String SHOULD_SYNC
Depending on the mode defined by the sync-adapter, this flag controls
the top-level sync behavior for this data source.
Type: INTEGER (boolean)
Constant Value:
"should_sync"
UNGROUPED_VISIBLE
public static final String UNGROUPED_VISIBLE
Flag indicating if contacts without any CommonDataKinds.GroupMembership
entries should be visible in any user interface.
Type: INTEGER (boolean)
Constant Value:
"ungrouped_visible"
UNGROUPED_WITH_PHONES
public static final String UNGROUPED_WITH_PHONES
Read-only count of Contacts
from a specific source that have
no CommonDataKinds.GroupMembership
entries, and also have phone numbers.
Type: INTEGER
Constant 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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \n\nContactsContract.SettingsColumns\n================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/ContactsContract.SettingsColumns \"View this page in Kotlin\") \\|Java\n\n\n`\nprotected\nstatic\n\n\ninterface\nContactsContract.SettingsColumns\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------|\n| android.provider.ContactsContract.SettingsColumns |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [ContactsContract.Settings](/reference/android/provider/ContactsContract.Settings) |------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------| | [ContactsContract.Settings](/reference/android/provider/ContactsContract.Settings) | Contacts-specific settings for various [Account](/reference/android/accounts/Account)'s. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n**See also:**\n\n- [ContactsContract.Settings](/reference/android/provider/ContactsContract.Settings)\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [ACCOUNT_NAME](/reference/android/provider/ContactsContract.SettingsColumns#ACCOUNT_NAME) The name of the account instance to which this row belongs. |\n| [String](/reference/java/lang/String) | [ACCOUNT_TYPE](/reference/android/provider/ContactsContract.SettingsColumns#ACCOUNT_TYPE) The type of account to which this row belongs, which when paired with [ACCOUNT_NAME](/reference/android/provider/ContactsContract.SettingsColumns#ACCOUNT_NAME) identifies a specific account. |\n| [String](/reference/java/lang/String) | [ANY_UNSYNCED](/reference/android/provider/ContactsContract.SettingsColumns#ANY_UNSYNCED) Read-only flag indicating if this [SHOULD_SYNC](/reference/android/provider/ContactsContract.SettingsColumns#SHOULD_SYNC) or any [Groups.SHOULD_SYNC](/reference/android/provider/ContactsContract.GroupsColumns#SHOULD_SYNC) under this account have been marked as unsynced. |\n| [String](/reference/java/lang/String) | [DATA_SET](/reference/android/provider/ContactsContract.SettingsColumns#DATA_SET) The data set within the account that this row belongs to. |\n| [String](/reference/java/lang/String) | [SHOULD_SYNC](/reference/android/provider/ContactsContract.SettingsColumns#SHOULD_SYNC) Depending on the mode defined by the sync-adapter, this flag controls the top-level sync behavior for this data source. |\n| [String](/reference/java/lang/String) | [UNGROUPED_COUNT](/reference/android/provider/ContactsContract.SettingsColumns#UNGROUPED_COUNT) Read-only count of [Contacts](/reference/android/provider/ContactsContract.Contacts) from a specific source that have no [CommonDataKinds.GroupMembership](/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries. |\n| [String](/reference/java/lang/String) | [UNGROUPED_VISIBLE](/reference/android/provider/ContactsContract.SettingsColumns#UNGROUPED_VISIBLE) Flag indicating if contacts without any [CommonDataKinds.GroupMembership](/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries should be visible in any user interface. |\n| [String](/reference/java/lang/String) | [UNGROUPED_WITH_PHONES](/reference/android/provider/ContactsContract.SettingsColumns#UNGROUPED_WITH_PHONES) Read-only count of [Contacts](/reference/android/provider/ContactsContract.Contacts) from a specific source that have no [CommonDataKinds.GroupMembership](/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries, and also have phone numbers. |\n\nConstants\n---------\n\n### ACCOUNT_NAME\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String ACCOUNT_NAME\n```\n\nThe name of the account instance to which this row belongs.\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"account_name\"\n\n\n### ACCOUNT_TYPE\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String ACCOUNT_TYPE\n```\n\nThe type of account to which this row belongs, which when paired with\n[ACCOUNT_NAME](/reference/android/provider/ContactsContract.SettingsColumns#ACCOUNT_NAME) identifies a specific account.\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"account_type\"\n\n\n### ANY_UNSYNCED\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String ANY_UNSYNCED\n```\n\nRead-only flag indicating if this [SHOULD_SYNC](/reference/android/provider/ContactsContract.SettingsColumns#SHOULD_SYNC) or any\n[Groups.SHOULD_SYNC](/reference/android/provider/ContactsContract.GroupsColumns#SHOULD_SYNC) under this account have been marked as\nunsynced.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"any_unsynced\"\n\n\n### DATA_SET\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String DATA_SET\n```\n\nThe data set within the account that this row belongs to. This allows\nmultiple sync adapters for the same account type to distinguish between\neach others' data.\n\nThis is empty by default, and is completely optional. It only needs to\nbe populated if multiple sync adapters are entering distinct data for\nthe same account type and account name.\n\nType: TEXT\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"data_set\"\n\n\n### SHOULD_SYNC\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String SHOULD_SYNC\n```\n\nDepending on the mode defined by the sync-adapter, this flag controls\nthe top-level sync behavior for this data source.\n\n\nType: INTEGER (boolean)\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"should_sync\"\n\n\n### UNGROUPED_COUNT\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String UNGROUPED_COUNT\n```\n\nRead-only count of [Contacts](/reference/android/provider/ContactsContract.Contacts) from a specific source that have\nno [CommonDataKinds.GroupMembership](/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries.\n\n\nType: INTEGER\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"summ_count\"\n\n\n### UNGROUPED_VISIBLE\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String UNGROUPED_VISIBLE\n```\n\nFlag indicating if contacts without any [CommonDataKinds.GroupMembership](/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership)\nentries should be visible in any user interface.\n\n\nType: INTEGER (boolean)\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"ungrouped_visible\"\n\n\n### UNGROUPED_WITH_PHONES\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String UNGROUPED_WITH_PHONES\n```\n\nRead-only count of [Contacts](/reference/android/provider/ContactsContract.Contacts) from a specific source that have\nno [CommonDataKinds.GroupMembership](/reference/android/provider/ContactsContract.CommonDataKinds.GroupMembership) entries, and also have phone numbers.\n\n\nType: INTEGER\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"summ_phones\""]]