Skip to content

Most visited

Recently visited

navigation

Contacts.Settings

public static final class Contacts.Settings
extends Object implements BaseColumns, Contacts.SettingsColumns

java.lang.Object
   ↳ android.provider.Contacts.Settings


This class was deprecated in API level 5.
see ContactsContract

The settings over all of the people

Summary

Constants

String CONTENT_DIRECTORY

This constant was deprecated in API level 5. see ContactsContract

String DEFAULT_SORT_ORDER

This constant was deprecated in API level 5. see ContactsContract

String SYNC_EVERYTHING

This constant was deprecated in API level 5. see ContactsContract

Inherited constants

From interface android.provider.BaseColumns
From interface android.provider.Contacts.SettingsColumns

Fields

public static final Uri CONTENT_URI

This field was deprecated in API level 5. see ContactsContract

Public methods

static String getSetting(ContentResolver cr, String account, String key)

This method was deprecated in API level 5. see ContactsContract

static void setSetting(ContentResolver cr, String account, String key, String value)

This method was deprecated in API level 5. see ContactsContract

Inherited methods

From class java.lang.Object

Constants

CONTENT_DIRECTORY

added in API level 1
String CONTENT_DIRECTORY

This constant was deprecated in API level 5.
see ContactsContract

The directory twig for this sub-table

Constant Value: "settings"

DEFAULT_SORT_ORDER

added in API level 1
String DEFAULT_SORT_ORDER

This constant was deprecated in API level 5.
see ContactsContract

The default sort order for this table

Constant Value: "key ASC"

SYNC_EVERYTHING

added in API level 1
String SYNC_EVERYTHING

This constant was deprecated in API level 5.
see ContactsContract

A setting that is used to indicate if we should sync down all groups for the specified account. For this setting the _SYNC_ACCOUNT column must be set. If this isn't set then we will only sync the groups whose SHOULD_SYNC column is set to true.

This is a boolean setting. It is true if it is set and it is anything other than the emptry string or "0".

Constant Value: "syncEverything"

Fields

CONTENT_URI

added in API level 1
Uri CONTENT_URI

This field was deprecated in API level 5.
see ContactsContract

The content:// style URL for this table

Public methods

getSetting

added in API level 1
String getSetting (ContentResolver cr, 
                String account, 
                String key)

This method was deprecated in API level 5.
see ContactsContract

Parameters
cr ContentResolver

account String

key String

Returns
String

setSetting

added in API level 1
void setSetting (ContentResolver cr, 
                String account, 
                String key, 
                String value)

This method was deprecated in API level 5.
see ContactsContract

Parameters
cr ContentResolver

account String

key String

value String

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)