Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/Settings.Secure#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/Settings.Secure#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/Settings.Secure#lfields) \| [Ctors](https://developer.android.com/reference/android/provider/Settings.Secure#pubctors) \| [Methods](https://developer.android.com/reference/android/provider/Settings.Secure#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/Settings.Secure#inhmethods)

# Settings.Secure

*** ** * ** ***


`
public
static
final

class
Settings.Secure
`


`


`

`

extends https://developer.android.com/reference/android/provider/Settings.NameValueTable


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.provider.Settings.NameValueTable](https://developer.android.com/reference/android/provider/Settings.NameValueTable) ||
|   | ↳ | android.provider.Settings.Secure |

<br />

*** ** * ** ***

Secure system settings, containing system preferences that applications
can read but are not allowed to write. These are for preferences that
the user must explicitly modify through the UI of a system app. Normal
applications cannot modify the secure settings database, either directly
or by calling the "put" methods that this class contains.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ACCESSIBILITY_DISPLAY_INVERSION_ENABLED` Setting that specifies whether display color inversion is enabled. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ACCESSIBILITY_ENABLED` If accessibility is enabled. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ACCESSIBILITY_SPEAK_PASSWORD` *This constant was deprecated in API level 26. The speaking of passwords is controlled by individual accessibility services. Apps should ignore this setting and provide complete information to accessibility at all times, which was the behavior when this value was `true`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ADB_ENABLED` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#ADB_ENABLED` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ALLOWED_GEOLOCATION_ORIGINS` Origins for which browsers should allow geolocation by default. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ALLOW_MOCK_LOCATION` *This constant was deprecated in API level 23. This settings is not used anymore.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID` On Android 8.0 (API level 26) and higher versions of the platform, a 64-bit number (expressed as a hexadecimal string), unique to each combination of app-signing key, user, and device. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#BACKGROUND_DATA` *This constant was deprecated in API level 15. As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH`, availability of background data depends on several combined factors. When background data is unavailable, `https://developer.android.com/reference/android/net/ConnectivityManager#getActiveNetworkInfo()` will now appear disconnected.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#BLUETOOTH_ON` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#BLUETOOTH_ON` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#DATA_ROAMING` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#DATA_ROAMING` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#DEFAULT_INPUT_METHOD` Stores `https://developer.android.com/reference/android/view/inputmethod/InputMethodInfo#getId()` of the input method service that is currently selected. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#DEVELOPMENT_SETTINGS_ENABLED` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#DEVELOPMENT_SETTINGS_ENABLED` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#DEVICE_PROVISIONED` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#DEVICE_PROVISIONED` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ENABLED_ACCESSIBILITY_SERVICES` List of the enabled accessibility providers. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#ENABLED_INPUT_METHODS` List of input methods that are currently enabled. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#HTTP_PROXY` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#HTTP_PROXY`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#INPUT_METHOD_SELECTOR_VISIBILITY` Setting to record the visibility of input method selector |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#INSTALL_NON_MARKET_APPS` *This constant was deprecated in API level 26. Starting from `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O`, apps should use `https://developer.android.com/reference/android/content/pm/PackageManager#canRequestPackageInstalls()`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE` *This constant was deprecated in API level 28. The preferred methods for checking location mode and listening for changes are via `https://developer.android.com/reference/android/location/LocationManager#isLocationEnabled()` and `https://developer.android.com/reference/android/location/LocationManager#MODE_CHANGED_ACTION`.* |
| `int` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE_BATTERY_SAVING` *This constant was deprecated in API level 28. See `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE`.* |
| `int` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE_HIGH_ACCURACY` *This constant was deprecated in API level 28. See `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE`.* |
| `int` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE_OFF` Location mode is off. |
| `int` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE_SENSORS_ONLY` *This constant was deprecated in API level 28. See `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_PROVIDERS_ALLOWED` *This constant was deprecated in API level 19. This setting no longer exists from Android S onwards as it no longer is capable of realistically reflecting location settings. Use `https://developer.android.com/reference/android/location/LocationManager#isProviderEnabled(java.lang.String)` or `https://developer.android.com/reference/android/location/LocationManager#isLocationEnabled()` instead.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCK_PATTERN_ENABLED` *This constant was deprecated in API level 23. Use `https://developer.android.com/reference/android/app/KeyguardManager` to determine the state and security level of the keyguard. Accessing this setting from an app that is targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M` or later throws a `SecurityException`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED` *This constant was deprecated in API level 17. Starting in `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1` the lockscreen uses `https://developer.android.com/reference/android/provider/Settings.System#HAPTIC_FEEDBACK_ENABLED`. Accessing this setting from an app that is targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M` or later throws a `SecurityException`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOCK_PATTERN_VISIBLE` *This constant was deprecated in API level 23. Accessing this setting from an app that is targeting `https://developer.android.com/reference/android/os/Build.VERSION_CODES#M` or later throws a `SecurityException`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#LOGGING_ID` *This constant was deprecated in API level 15. This identifier is poorly initialized and has many collisions. It should not be used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#NETWORK_PREFERENCE` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#NETWORK_PREFERENCE` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#PARENTAL_CONTROL_ENABLED` No longer supported. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#PARENTAL_CONTROL_LAST_UPDATE` No longer supported. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#PARENTAL_CONTROL_REDIRECT_URL` No longer supported. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#RTT_CALLING_MODE` User-selected RTT mode. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#SECURE_FRP_MODE` *This constant was deprecated in API level 34. Use Global.SECURE_FRP_MODE* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#SELECTED_INPUT_METHOD_SUBTYPE` Setting to record the input method subtype used by default, holding the ID of the desired method. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#SETTINGS_CLASSNAME` Settings classname to launch when Settings is clicked from All Applications. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#SKIP_FIRST_USE_HINTS` If enabled, apps should try to skip any introductory hints on first launch. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TOUCH_EXPLORATION_ENABLED` If touch exploration is enabled. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_DEFAULT_COUNTRY` *This constant was deprecated in API level 15. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the default locale. `https://developer.android.com/reference/android/speech/tts/TextToSpeech#getLanguage()`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_DEFAULT_LANG` *This constant was deprecated in API level 15. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the default locale. `https://developer.android.com/reference/android/speech/tts/TextToSpeech#getLanguage()`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_DEFAULT_PITCH` Default text-to-speech engine pitch. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_DEFAULT_RATE` Default text-to-speech engine speech rate. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_DEFAULT_SYNTH` Default text-to-speech engine. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_DEFAULT_VARIANT` *This constant was deprecated in API level 15. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the locale that is in use `https://developer.android.com/reference/android/speech/tts/TextToSpeech#getLanguage()`.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_ENABLED_PLUGINS` Space delimited list of plugin packages that are enabled. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#TTS_USE_DEFAULTS` *This constant was deprecated in API level 15. The value of this setting is no longer respected by the framework text to speech APIs as of the Ice Cream Sandwich release.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#USB_MASS_STORAGE_ENABLED` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#USB_MASS_STORAGE_ENABLED` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#USE_GOOGLE_MAIL` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#USE_GOOGLE_MAIL` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_MAX_DHCP_RETRY_COUNT` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_MAX_DHCP_RETRY_COUNT` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON` instead.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY` instead.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_NUM_OPEN_NETWORKS_KEPT` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_NUM_OPEN_NETWORKS_KEPT` instead.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_ON` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_ON` instead.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_AP_COUNT` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_MAX_AP_CHECKS` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_ON` *This constant was deprecated in API level 17. Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_WATCHDOG_ON` instead* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_PING_COUNT` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_PING_DELAY_MS` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_PING_TIMEOUT_MS` *This constant was deprecated in API level 15. This setting is not used.* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Settings.Secure#WIFI_WATCHDOG_WATCH_LIST` *This constant was deprecated in API level 15. This setting is not used.* |

### Inherited constants

From class `https://developer.android.com/reference/android/provider/Settings.NameValueTable` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Settings.NameValueTable#NAME`


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/Settings.NameValueTable#VALUE`


From interface `https://developer.android.com/reference/android/provider/BaseColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_COUNT`

The count of rows in a directory.


`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_ID`

The unique ID for a row.


| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/Settings.Secure#CONTENT_URI` The content:// style URL for this table |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/provider/Settings.Secure#Secure()() ` |

| ### Public methods ||
|---|---|
| ` static float` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getFloat(android.content.ContentResolver,%20java.lang.String,%20float)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name, float def) ` Convenience function for retrieving a single secure settings value as a floating point number. |
| ` static float` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getFloat(android.content.ContentResolver,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name) ` Convenience function for retrieving a single secure settings value as a float. |
| ` static int` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getInt(android.content.ContentResolver,%20java.lang.String,%20int)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name, int def) ` Convenience function for retrieving a single secure settings value as an integer. |
| ` static int` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getInt(android.content.ContentResolver,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name) ` Convenience function for retrieving a single secure settings value as an integer. |
| ` static long` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getLong(android.content.ContentResolver,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name) ` Convenience function for retrieving a single secure settings value as a `long`. |
| ` static long` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getLong(android.content.ContentResolver,%20java.lang.String,%20long)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name, long def) ` Convenience function for retrieving a single secure settings value as a `long`. |
| ` static https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getString(android.content.ContentResolver,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver resolver, https://developer.android.com/reference/java/lang/String name) ` Look up a name in the database. |
| ` static https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/provider/Settings.Secure#getUriFor(java.lang.String)(https://developer.android.com/reference/java/lang/String name) ` Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver. |
| ` static boolean` | ` https://developer.android.com/reference/android/provider/Settings.Secure#isLocationProviderEnabled(android.content.ContentResolver,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String provider) ` *This method was deprecated in API level 19. use `https://developer.android.com/reference/android/location/LocationManager#isProviderEnabled(java.lang.String)`* |
| ` static boolean` | ` https://developer.android.com/reference/android/provider/Settings.Secure#putFloat(android.content.ContentResolver,%20java.lang.String,%20float)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name, float value) ` Convenience function for updating a single settings value as a floating point number. |
| ` static boolean` | ` https://developer.android.com/reference/android/provider/Settings.Secure#putInt(android.content.ContentResolver,%20java.lang.String,%20int)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name, int value) ` Convenience function for updating a single settings value as an integer. |
| ` static boolean` | ` https://developer.android.com/reference/android/provider/Settings.Secure#putLong(android.content.ContentResolver,%20java.lang.String,%20long)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String name, long value) ` Convenience function for updating a secure settings value as a long integer. |
| ` static boolean` | ` https://developer.android.com/reference/android/provider/Settings.Secure#putString(android.content.ContentResolver,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver resolver, https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String value) ` Store a name/value pair into the database. |
| ` static void` | ` https://developer.android.com/reference/android/provider/Settings.Secure#setLocationProviderEnabled(android.content.ContentResolver,%20java.lang.String,%20boolean)(https://developer.android.com/reference/android/content/ContentResolver cr, https://developer.android.com/reference/java/lang/String provider, boolean enabled) ` *This method was deprecated in API level 19. This API is deprecated* |

### Inherited methods

From class `

https://developer.android.com/reference/android/provider/Settings.NameValueTable

` `


static


https://developer.android.com/reference/android/net/Uri` `
https://developer.android.com/reference/android/provider/Settings.NameValueTable#getUriFor(android.net.Uri,%20java.lang.String)(https://developer.android.com/reference/android/net/Uri uri, https://developer.android.com/reference/java/lang/String name)
` `


static


boolean` `
https://developer.android.com/reference/android/provider/Settings.NameValueTable#putString(android.content.ContentResolver,%20android.net.Uri,%20java.lang.String,%20java.lang.String)(https://developer.android.com/reference/android/content/ContentResolver resolver, https://developer.android.com/reference/android/net/Uri uri, https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/lang/String value)
` From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


## Constants

### ACCESSIBILITY_DISPLAY_INVERSION_ENABLED

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

```
public static final String ACCESSIBILITY_DISPLAY_INVERSION_ENABLED
```

Setting that specifies whether display color inversion is enabled.

<br />

Constant Value:

"accessibility_display_inversion_enabled"


### ACCESSIBILITY_ENABLED

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

```
public static final String ACCESSIBILITY_ENABLED
```

If accessibility is enabled.

<br />

Constant Value:

"accessibility_enabled"


### ACCESSIBILITY_SPEAK_PASSWORD

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

```
public static final String ACCESSIBILITY_SPEAK_PASSWORD
```


**This constant was deprecated
in API level 26.**   

The speaking of passwords is controlled by individual accessibility services.
Apps should ignore this setting and provide complete information to accessibility
at all times, which was the behavior when this value was `true`.

Whether to speak passwords while in accessibility mode.

<br />

Constant Value:

"speak_password"


### ADB_ENABLED

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

```
public static final String ADB_ENABLED
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#ADB_ENABLED` instead

<br />

<br />

Constant Value:

"adb_enabled"


### ALLOWED_GEOLOCATION_ORIGINS

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

```
public static final String ALLOWED_GEOLOCATION_ORIGINS
```

Origins for which browsers should allow geolocation by default.
The value is a space-separated list of origins.

<br />

Constant Value:

"allowed_geolocation_origins"


### ALLOW_MOCK_LOCATION

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

```
public static final String ALLOW_MOCK_LOCATION
```


**This constant was deprecated
in API level 23.**   

This settings is not used anymore.

Setting to allow mock locations and location provider status to be injected into the
LocationManager service for testing purposes during application development. These
locations and status values override actual location and status information generated
by network, gps, or other location providers.

<br />

Constant Value:

"mock_location"


### ANDROID_ID

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

```
public static final String ANDROID_ID
```

On Android 8.0 (API level 26) and higher versions of the platform,
a 64-bit number (expressed as a hexadecimal string), unique to
each combination of app-signing key, user, and device.
Values of `ANDROID_ID` are scoped by signing key and user.
The value may change if a factory reset is performed on the
device or if an APK signing key changes.

For more information about how the platform handles `ANDROID_ID`
in Android 8.0 (API level 26) and higher, see [Android 8.0 Behavior Changes](https://developer.android.com/about/versions/oreo/android-8.0-changes#privacy-all).

**Note:** For apps that were installed
prior to updating the device to a version of Android 8.0
(API level 26) or higher, the value of `ANDROID_ID` changes
if the app is uninstalled and then reinstalled after the OTA.
To preserve values across uninstalls after an OTA to Android 8.0
or higher, developers can use
[Key/Value Backup](https://developer.android.com/guide/topics/data/keyvaluebackup).

In versions of the platform lower than Android 8.0 (API level 26),
a 64-bit number (expressed as a hexadecimal string) that is randomly
generated when the user first sets up the device and should remain
constant for the lifetime of the user's device.

On devices that have
[multiple users](https://developer.android.com/about/versions/android-4.2#MultipleUsers), each user appears as a
completely separate device, so the `ANDROID_ID` value is
unique to each user.

**Note:** If the caller is an Instant App the ID is scoped
to the Instant App, it is generated when the Instant App is first installed and reset if
the user clears the Instant App.

<br />

Constant Value:

"android_id"


### BACKGROUND_DATA

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

```
public static final String BACKGROUND_DATA
```


**This constant was deprecated
in API level 15.**   

As of `https://developer.android.com/reference/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH`,
availability of background data depends on several
combined factors. When background data is unavailable,
`https://developer.android.com/reference/android/net/ConnectivityManager#getActiveNetworkInfo()` will
now appear disconnected.

Whether background data usage is allowed.

<br />

Constant Value:

"background_data"


### BLUETOOTH_ON

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

```
public static final String BLUETOOTH_ON
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#BLUETOOTH_ON` instead

<br />

<br />

Constant Value:

"bluetooth_on"


### DATA_ROAMING

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

```
public static final String DATA_ROAMING
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#DATA_ROAMING` instead

<br />

<br />

Constant Value:

"data_roaming"


### DEFAULT_INPUT_METHOD

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

```
public static final String DEFAULT_INPUT_METHOD
```

Stores `https://developer.android.com/reference/android/view/inputmethod/InputMethodInfo#getId()` of the input method
service that is currently selected.

Although the name `https://developer.android.com/reference/android/provider/Settings.Secure#DEFAULT_INPUT_METHOD` implies that there is a concept of
*default* input method, in reality this setting is no more or less than the
**currently selected** input method. This setting can be updated at any
time as a result of user-initiated and system-initiated input method switching.

Use `https://developer.android.com/reference/android/content/ComponentName#unflattenFromString(java.lang.String)` to parse the stored value.

<br />

<br />

Constant Value:

"default_input_method"


### DEVELOPMENT_SETTINGS_ENABLED

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

```
public static final String DEVELOPMENT_SETTINGS_ENABLED
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#DEVELOPMENT_SETTINGS_ENABLED`
instead

<br />

<br />

Constant Value:

"development_settings_enabled"


### DEVICE_PROVISIONED

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

```
public static final String DEVICE_PROVISIONED
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#DEVICE_PROVISIONED` instead

<br />

<br />

Constant Value:

"device_provisioned"


### ENABLED_ACCESSIBILITY_SERVICES

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

```
public static final String ENABLED_ACCESSIBILITY_SERVICES
```

List of the enabled accessibility providers.

<br />

Constant Value:

"enabled_accessibility_services"


### ENABLED_INPUT_METHODS

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

```
public static final String ENABLED_INPUT_METHODS
```

List of input methods that are currently enabled. This is a string
containing the IDs of all enabled input methods, each ID separated
by ':'.

Format like "ime0;subtype0;subtype1;subtype2:ime1:ime2;subtype0"
where imeId is ComponentName and subtype is int32.

Note: This setting is not readable to the app targeting API level 34 or higher. use
`https://developer.android.com/reference/android/view/inputmethod/InputMethodManager#getEnabledInputMethodList()` instead.

<br />

Constant Value:

"enabled_input_methods"


### HTTP_PROXY

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

```
public static final String HTTP_PROXY
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#HTTP_PROXY`

Host name and port for global http proxy. Uses ':' seperator for
between host and port.

<br />

Constant Value:

"http_proxy"


### INPUT_METHOD_SELECTOR_VISIBILITY

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

```
public static final String INPUT_METHOD_SELECTOR_VISIBILITY
```

Setting to record the visibility of input method selector

<br />

Constant Value:

"input_method_selector_visibility"


### INSTALL_NON_MARKET_APPS

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

```
public static final String INSTALL_NON_MARKET_APPS
```


**This constant was deprecated
in API level 26.**   

Starting from `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O`, apps should use
`https://developer.android.com/reference/android/content/pm/PackageManager#canRequestPackageInstalls()`

Whether applications can be installed for this user via the system's
`https://developer.android.com/reference/android/content/Intent#ACTION_INSTALL_PACKAGE` mechanism.

1 = permit app installation via the system package installer intent

0 = do not allow use of the package installer

<br />

**See also:**

- `https://developer.android.com/reference/android/content/pm/PackageManager#canRequestPackageInstalls()`

Constant Value:

"install_non_market_apps"


### LOCATION_MODE

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

```
public static final String LOCATION_MODE
```


**This constant was deprecated
in API level 28.**   

The preferred methods for checking location mode and listening for changes
are via `https://developer.android.com/reference/android/location/LocationManager#isLocationEnabled()` and
`https://developer.android.com/reference/android/location/LocationManager#MODE_CHANGED_ACTION`.

The current location mode of the device. Do not rely on this value being present or on
ContentObserver notifications on the corresponding Uri.

<br />

Constant Value:

"location_mode"


### LOCATION_MODE_BATTERY_SAVING

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

```
public static final int LOCATION_MODE_BATTERY_SAVING
```


**This constant was deprecated
in API level 28.**   

See `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE`.

This mode no longer has any distinct meaning, but is interpreted as the location mode is
on.

<br />

Constant Value:

2
(0x00000002)


### LOCATION_MODE_HIGH_ACCURACY

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

```
public static final int LOCATION_MODE_HIGH_ACCURACY
```


**This constant was deprecated
in API level 28.**   

See `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE`.

This mode no longer has any distinct meaning, but is interpreted as the location mode is
on.

<br />

Constant Value:

3
(0x00000003)


### LOCATION_MODE_OFF

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

```
public static final int LOCATION_MODE_OFF
```

Location mode is off.

<br />

Constant Value:

0
(0x00000000)


### LOCATION_MODE_SENSORS_ONLY

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

```
public static final int LOCATION_MODE_SENSORS_ONLY
```


**This constant was deprecated
in API level 28.**   

See `https://developer.android.com/reference/android/provider/Settings.Secure#LOCATION_MODE`.

This mode no longer has any distinct meaning, but is interpreted as the location mode is
on.

<br />

Constant Value:

1
(0x00000001)


### LOCATION_PROVIDERS_ALLOWED

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

```
public static final String LOCATION_PROVIDERS_ALLOWED
```


**This constant was deprecated
in API level 19.**   

This setting no longer exists from Android S onwards as it no longer is
capable of realistically reflecting location settings. Use `https://developer.android.com/reference/android/location/LocationManager#isProviderEnabled(java.lang.String)` or `https://developer.android.com/reference/android/location/LocationManager#isLocationEnabled()`
instead.

Comma-separated list of location providers that are enabled. Do not rely on this value
being present or correct, or on ContentObserver notifications on the corresponding Uri.

<br />

Constant Value:

"location_providers_allowed"


### LOCK_PATTERN_ENABLED

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

```
public static final String LOCK_PATTERN_ENABLED
```


**This constant was deprecated
in API level 23.**   

Use `https://developer.android.com/reference/android/app/KeyguardManager` to determine the state and security
level of the keyguard. Accessing this setting from an app that is targeting
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#M` or later throws a `SecurityException`.

Whether autolock is enabled (0 = false, 1 = true)

<br />

Constant Value:

"lock_pattern_autolock"


### LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED

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

```
public static final String LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
```


**This constant was deprecated
in API level 17.**   

Starting in `https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1` the
lockscreen uses
`https://developer.android.com/reference/android/provider/Settings.System#HAPTIC_FEEDBACK_ENABLED`.
Accessing this setting from an app that is targeting
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#M` or later throws a `SecurityException`.

Whether lock pattern will vibrate as user enters (0 = false, 1 =
true)

<br />

Constant Value:

"lock_pattern_tactile_feedback_enabled"


### LOCK_PATTERN_VISIBLE

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

```
public static final String LOCK_PATTERN_VISIBLE
```


**This constant was deprecated
in API level 23.**   

Accessing this setting from an app that is targeting
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#M` or later throws a `SecurityException`.

Whether lock pattern is visible as user enters (0 = false, 1 = true)

<br />

Constant Value:

"lock_pattern_visible_pattern"


### LOGGING_ID

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

```
public static final String LOGGING_ID
```


**This constant was deprecated
in API level 15.**   

This identifier is poorly initialized and has
many collisions. It should not be used.

The Logging ID (a unique 64-bit value) as a hex string.
Used as a pseudonymous identifier for logging.

<br />

Constant Value:

"logging_id"


### NETWORK_PREFERENCE

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

```
public static final String NETWORK_PREFERENCE
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#NETWORK_PREFERENCE` instead

<br />

<br />

Constant Value:

"network_preference"


### PARENTAL_CONTROL_ENABLED

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

```
public static final String PARENTAL_CONTROL_ENABLED
```

No longer supported.

<br />

Constant Value:

"parental_control_enabled"


### PARENTAL_CONTROL_LAST_UPDATE

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

```
public static final String PARENTAL_CONTROL_LAST_UPDATE
```

No longer supported.

<br />

Constant Value:

"parental_control_last_update"


### PARENTAL_CONTROL_REDIRECT_URL

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

```
public static final String PARENTAL_CONTROL_REDIRECT_URL
```

No longer supported.

<br />

Constant Value:

"parental_control_redirect_url"


### RTT_CALLING_MODE

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

```
public static final String RTT_CALLING_MODE
```

User-selected RTT mode. When on, outgoing and incoming calls will be answered as RTT
calls when supported by the device and carrier. Boolean value.
0 = OFF
1 = ON

<br />

Constant Value:

"rtt_calling_mode"


### SECURE_FRP_MODE

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

```
public static final String SECURE_FRP_MODE
```


**This constant was deprecated
in API level 34.**   

Use Global.SECURE_FRP_MODE

Indicates whether the device is under restricted secure FRP mode.
Secure FRP mode is enabled when the device is under FRP. On solving of FRP challenge,
device is removed from this mode.


Type: int (0 for false, 1 for true)

<br />

Constant Value:

"secure_frp_mode"


### SELECTED_INPUT_METHOD_SUBTYPE

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

```
public static final String SELECTED_INPUT_METHOD_SUBTYPE
```

Setting to record the input method subtype used by default, holding the ID
of the desired method.

<br />

Constant Value:

"selected_input_method_subtype"


### SETTINGS_CLASSNAME

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

```
public static final String SETTINGS_CLASSNAME
```

Settings classname to launch when Settings is clicked from All
Applications. Needed because of user testing between the old
and new Settings apps.

<br />

Constant Value:

"settings_classname"


### SKIP_FIRST_USE_HINTS

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

```
public static final String SKIP_FIRST_USE_HINTS
```

If enabled, apps should try to skip any introductory hints on first launch. This might
apply to users that are already familiar with the environment or temporary users.

Note: This setting shares internal state with the policy
`https://developer.android.com/`. Using both
simultaneously will cause undefined behavior.


Type : int (0 to show hints, 1 to skip showing hints)

<br />

Constant Value:

"skip_first_use_hints"


### TOUCH_EXPLORATION_ENABLED

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

```
public static final String TOUCH_EXPLORATION_ENABLED
```

If touch exploration is enabled.

<br />

Constant Value:

"touch_exploration_enabled"


### TTS_DEFAULT_COUNTRY

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

```
public static final String TTS_DEFAULT_COUNTRY
```


**This constant was deprecated
in API level 15.**   

this setting is no longer in use, as of the Ice Cream
Sandwich release. Apps should never need to read this setting directly,
instead can query the TextToSpeech framework classes for the default
locale. `https://developer.android.com/reference/android/speech/tts/TextToSpeech#getLanguage()`.

Default text-to-speech country.

<br />

Constant Value:

"tts_default_country"


### TTS_DEFAULT_LANG

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

```
public static final String TTS_DEFAULT_LANG
```


**This constant was deprecated
in API level 15.**   

this setting is no longer in use, as of the Ice Cream
Sandwich release. Apps should never need to read this setting directly,
instead can query the TextToSpeech framework classes for the default
locale. `https://developer.android.com/reference/android/speech/tts/TextToSpeech#getLanguage()`.

Default text-to-speech language.

<br />

Constant Value:

"tts_default_lang"


### TTS_DEFAULT_PITCH

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

```
public static final String TTS_DEFAULT_PITCH
```

Default text-to-speech engine pitch. 100 = 1x

<br />

Constant Value:

"tts_default_pitch"


### TTS_DEFAULT_RATE

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

```
public static final String TTS_DEFAULT_RATE
```

Default text-to-speech engine speech rate. 100 = 1x

<br />

Constant Value:

"tts_default_rate"


### TTS_DEFAULT_SYNTH

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

```
public static final String TTS_DEFAULT_SYNTH
```

Default text-to-speech engine.

<br />

Constant Value:

"tts_default_synth"


### TTS_DEFAULT_VARIANT

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

```
public static final String TTS_DEFAULT_VARIANT
```


**This constant was deprecated
in API level 15.**   

this setting is no longer in use, as of the Ice Cream
Sandwich release. Apps should never need to read this setting directly,
instead can query the TextToSpeech framework classes for the
locale that is in use `https://developer.android.com/reference/android/speech/tts/TextToSpeech#getLanguage()`.

Default text-to-speech locale variant.

<br />

Constant Value:

"tts_default_variant"


### TTS_ENABLED_PLUGINS

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

```
public static final String TTS_ENABLED_PLUGINS
```

Space delimited list of plugin packages that are enabled.

<br />

Constant Value:

"tts_enabled_plugins"


### TTS_USE_DEFAULTS

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

```
public static final String TTS_USE_DEFAULTS
```


**This constant was deprecated
in API level 15.**   

The value of this setting is no longer respected by
the framework text to speech APIs as of the Ice Cream Sandwich release.

Setting to always use the default text-to-speech settings regardless
of the application settings.
1 = override application settings,
0 = use application settings (if specified).

<br />

Constant Value:

"tts_use_defaults"


### USB_MASS_STORAGE_ENABLED

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

```
public static final String USB_MASS_STORAGE_ENABLED
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#USB_MASS_STORAGE_ENABLED` instead

<br />

<br />

Constant Value:

"usb_mass_storage_enabled"


### USE_GOOGLE_MAIL

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

```
public static final String USE_GOOGLE_MAIL
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#USE_GOOGLE_MAIL` instead

<br />

<br />

Constant Value:

"use_google_mail"


### WIFI_MAX_DHCP_RETRY_COUNT

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

```
public static final String WIFI_MAX_DHCP_RETRY_COUNT
```


**This constant was deprecated
in API level 17.**   

Use
`https://developer.android.com/reference/android/provider/Settings.Global#WIFI_MAX_DHCP_RETRY_COUNT` instead

<br />

<br />

Constant Value:

"wifi_max_dhcp_retry_count"


### WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS

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

```
public static final String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
```


**This constant was deprecated
in API level 17.**   

Use
`https://developer.android.com/reference/android/provider/Settings.Global#WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS` instead

<br />

<br />

Constant Value:

"wifi_mobile_data_transition_wakelock_timeout_ms"


### WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON

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

```
public static final String WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON`
instead.

<br />

<br />

Constant Value:

"wifi_networks_available_notification_on"


### WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY

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

```
public static final String WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY`
instead.

<br />

<br />

Constant Value:

"wifi_networks_available_repeat_delay"


### WIFI_NUM_OPEN_NETWORKS_KEPT

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

```
public static final String WIFI_NUM_OPEN_NETWORKS_KEPT
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_NUM_OPEN_NETWORKS_KEPT`
instead.

<br />

<br />

Constant Value:

"wifi_num_open_networks_kept"


### WIFI_ON

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

```
public static final String WIFI_ON
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_ON`
instead.

<br />

<br />

Constant Value:

"wifi_on"


### WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE

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

```
public static final String WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The acceptable packet loss percentage (range 0 - 100) before trying
another AP on the same network.

<br />

Constant Value:

"wifi_watchdog_acceptable_packet_loss_percentage"


### WIFI_WATCHDOG_AP_COUNT

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

```
public static final String WIFI_WATCHDOG_AP_COUNT
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The number of access points required for a network in order for the
watchdog to monitor it.

<br />

Constant Value:

"wifi_watchdog_ap_count"


### WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS

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

```
public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The delay between background checks.

<br />

Constant Value:

"wifi_watchdog_background_check_delay_ms"


### WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED

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

```
public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

Whether the Wi-Fi watchdog is enabled for background checking even
after it thinks the user has connected to a good access point.

<br />

Constant Value:

"wifi_watchdog_background_check_enabled"


### WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS

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

```
public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The timeout for a background ping

<br />

Constant Value:

"wifi_watchdog_background_check_timeout_ms"


### WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT

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

```
public static final String WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The number of initial pings to perform that \*may\* be ignored if they
fail. Again, if these fail, they will \*not\* be used in packet loss
calculation. For example, one network always seemed to time out for
the first couple pings, so this is set to 3 by default.

<br />

Constant Value:

"wifi_watchdog_initial_ignored_ping_count"


### WIFI_WATCHDOG_MAX_AP_CHECKS

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

```
public static final String WIFI_WATCHDOG_MAX_AP_CHECKS
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The maximum number of access points (per network) to attempt to test.
If this number is reached, the watchdog will no longer monitor the
initial connection state for the network. This is a safeguard for
networks containing multiple APs whose DNS does not respond to pings.

<br />

Constant Value:

"wifi_watchdog_max_ap_checks"


### WIFI_WATCHDOG_ON

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

```
public static final String WIFI_WATCHDOG_ON
```


**This constant was deprecated
in API level 17.**   

Use `https://developer.android.com/reference/android/provider/Settings.Global#WIFI_WATCHDOG_ON` instead

<br />

<br />

Constant Value:

"wifi_watchdog_on"


### WIFI_WATCHDOG_PING_COUNT

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

```
public static final String WIFI_WATCHDOG_PING_COUNT
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The number of pings to test if an access point is a good connection.

<br />

Constant Value:

"wifi_watchdog_ping_count"


### WIFI_WATCHDOG_PING_DELAY_MS

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

```
public static final String WIFI_WATCHDOG_PING_DELAY_MS
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The delay between pings.

<br />

Constant Value:

"wifi_watchdog_ping_delay_ms"


### WIFI_WATCHDOG_PING_TIMEOUT_MS

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

```
public static final String WIFI_WATCHDOG_PING_TIMEOUT_MS
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

The timeout per ping.

<br />

Constant Value:

"wifi_watchdog_ping_timeout_ms"


### WIFI_WATCHDOG_WATCH_LIST

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

```
public static final String WIFI_WATCHDOG_WATCH_LIST
```


**This constant was deprecated
in API level 15.**   

This setting is not used.

A comma-separated list of SSIDs for which the Wi-Fi watchdog should be enabled.

<br />

Constant Value:

"wifi_watchdog_watch_list"


## Fields

### CONTENT_URI

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

```
public static final Uri CONTENT_URI
```

The content:// style URL for this table

<br />

## Public constructors

### Secure

```
public Secure ()
```

<br />

<br />

## Public methods

### getFloat

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

```
public static float getFloat (ContentResolver cr, 
                String name, 
                float def)
```

Convenience function for retrieving a single secure settings value
as a floating point number. Note that internally setting values are
always stored as strings; this function converts the string to an
float for you. The default value will be returned if the setting
is not defined or not a valid float.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to retrieve. <br /> |
| `def` | `float`: Value to return if the setting is not defined. <br /> |

| Returns ||
|---|---|
| `float` | The setting's current value, or 'def' if it is not defined or not a valid float. <br /> |

### getFloat

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

```
public static float getFloat (ContentResolver cr, 
                String name)
```

Convenience function for retrieving a single secure settings value
as a float. Note that internally setting values are always
stored as strings; this function converts the string to a float
for you.


This version does not take a default value. If the setting has not
been set, or the string value is not a number,
it throws `https://developer.android.com/reference/android/provider/Settings.SettingNotFoundException`.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to retrieve. <br /> |

| Returns ||
|---|---|
| `float` | The setting's current value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/provider/Settings.SettingNotFoundException` | Thrown if a setting by the given name can't be found or the setting value is not a float. |

### getInt

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

```
public static int getInt (ContentResolver cr, 
                String name, 
                int def)
```

Convenience function for retrieving a single secure settings value
as an integer. Note that internally setting values are always
stored as strings; this function converts the string to an integer
for you. The default value will be returned if the setting is
not defined or not an integer.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to retrieve. <br /> |
| `def` | `int`: Value to return if the setting is not defined. <br /> |

| Returns ||
|---|---|
| `int` | The setting's current value, or 'def' if it is not defined or not a valid integer. <br /> |

### getInt

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

```
public static int getInt (ContentResolver cr, 
                String name)
```

Convenience function for retrieving a single secure settings value
as an integer. Note that internally setting values are always
stored as strings; this function converts the string to an integer
for you.


This version does not take a default value. If the setting has not
been set, or the string value is not a number,
it throws `https://developer.android.com/reference/android/provider/Settings.SettingNotFoundException`.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to retrieve. <br /> |

| Returns ||
|---|---|
| `int` | The setting's current value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/provider/Settings.SettingNotFoundException` | Thrown if a setting by the given name can't be found or the setting value is not an integer. |

### getLong

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

```
public static long getLong (ContentResolver cr, 
                String name)
```

Convenience function for retrieving a single secure settings value
as a `long`. Note that internally setting values are always
stored as strings; this function converts the string to a `long`
for you.


This version does not take a default value. If the setting has not
been set, or the string value is not a number,
it throws `https://developer.android.com/reference/android/provider/Settings.SettingNotFoundException`.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to retrieve. <br /> |

| Returns ||
|---|---|
| `long` | The setting's current value. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/android/provider/Settings.SettingNotFoundException` | Thrown if a setting by the given name can't be found or the setting value is not an integer. |

### getLong

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

```
public static long getLong (ContentResolver cr, 
                String name, 
                long def)
```

Convenience function for retrieving a single secure settings value
as a `long`. Note that internally setting values are always
stored as strings; this function converts the string to a `long`
for you. The default value will be returned if the setting is
not defined or not a `long`.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to retrieve. <br /> |
| `def` | `long`: Value to return if the setting is not defined. <br /> |

| Returns ||
|---|---|
| `long` | The setting's current value, or 'def' if it is not defined or not a valid `long`. <br /> |

### getString

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

```
public static String getString (ContentResolver resolver, 
                String name)
```

Look up a name in the database.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver`: to access the database with <br /> |
| `name` | `String`: to look up in the table <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the corresponding value, or null if not present <br /> |

### getUriFor

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

```
public static Uri getUriFor (String name)
```

Construct the content URI for a particular name/value pair,
useful for monitoring changes with a ContentObserver.

<br />

| Parameters ||
|---|---|
| `name` | `String`: to look up in the table <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the corresponding content URI, or null if not present <br /> |

### isLocationProviderEnabled

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

```
public static boolean isLocationProviderEnabled (ContentResolver cr, 
                String provider)
```


**This method was deprecated
in API level 19.**   

use `https://developer.android.com/reference/android/location/LocationManager#isProviderEnabled(java.lang.String)`

Helper method for determining if a location provider is enabled.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: the content resolver to use <br /> |
| `provider` | `String`: the location provider to query <br /> |

| Returns ||
|---|---|
| `boolean` | true if the provider is enabled <br /> |

### putFloat

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

```
public static boolean putFloat (ContentResolver cr, 
                String name, 
                float value)
```

Convenience function for updating a single settings value as a
floating point number. This will either create a new entry in the
table if the given name does not exist, or modify the value of the
existing row with that name. Note that internally setting values
are always stored as strings, so this function converts the given
value to a string before storing it.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to modify. <br /> |
| `value` | `float`: The new value for the setting. <br /> |

| Returns ||
|---|---|
| `boolean` | true if the value was set, false on database errors <br /> |

### putInt

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

```
public static boolean putInt (ContentResolver cr, 
                String name, 
                int value)
```

Convenience function for updating a single settings value as an
integer. This will either create a new entry in the table if the
given name does not exist, or modify the value of the existing row
with that name. Note that internally setting values are always
stored as strings, so this function converts the given value to a
string before storing it.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to modify. <br /> |
| `value` | `int`: The new value for the setting. <br /> |

| Returns ||
|---|---|
| `boolean` | true if the value was set, false on database errors <br /> |

### putLong

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

```
public static boolean putLong (ContentResolver cr, 
                String name, 
                long value)
```

Convenience function for updating a secure settings value as a long
integer. This will either create a new entry in the table if the
given name does not exist, or modify the value of the existing row
with that name. Note that internally setting values are always
stored as strings, so this function converts the given value to a
string before storing it.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: The ContentResolver to access. <br /> |
| `name` | `String`: The name of the setting to modify. <br /> |
| `value` | `long`: The new value for the setting. <br /> |

| Returns ||
|---|---|
| `boolean` | true if the value was set, false on database errors <br /> |

### putString

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

```
public static boolean putString (ContentResolver resolver, 
                String name, 
                String value)
```

Store a name/value pair into the database.

<br />

| Parameters ||
|---|---|
| `resolver` | `ContentResolver`: to access the database with <br /> |
| `name` | `String`: to store <br /> |
| `value` | `String`: to associate with the name <br /> |

| Returns ||
|---|---|
| `boolean` | true if the value was set, false on database errors <br /> |

### setLocationProviderEnabled

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

```
public static void setLocationProviderEnabled (ContentResolver cr, 
                String provider, 
                boolean enabled)
```


**This method was deprecated
in API level 19.**   

This API is deprecated

Thread-safe method for enabling or disabling a single location provider. This will have
no effect on Android Q and above.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: the content resolver to use <br /> |
| `provider` | `String`: the location provider to enable or disable <br /> |
| `enabled` | `boolean`: true if the provider should be enabled <br /> |