java.lang.Object | ||
↳ | android.provider.Settings.NameValueTable | |
↳ | android.provider.Settings.System |
System settings, containing miscellaneous system preferences. This table holds simple name/value pairs. There are convenience functions for accessing individual settings entries.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACCELEROMETER_ROTATION | Control whether the accelerometer will be used to change screen orientation. | |||||||||
String | ADB_ENABLED |
This constant was deprecated
in API level 3.
Use ADB_ENABLED
instead
|
|||||||||
String | AIRPLANE_MODE_ON |
This constant was deprecated
in API level 17.
Use AIRPLANE_MODE_ON instead
|
|||||||||
String | AIRPLANE_MODE_RADIOS |
This constant was deprecated
in API level 17.
Use AIRPLANE_MODE_RADIOS instead
|
|||||||||
String | ALARM_ALERT | Persistent store for the system-wide default alarm alert. | |||||||||
String | ALWAYS_FINISH_ACTIVITIES |
This constant was deprecated
in API level 17.
Use ALWAYS_FINISH_ACTIVITIES instead
|
|||||||||
String | ANDROID_ID |
This constant was deprecated
in API level 3.
Use ANDROID_ID instead
|
|||||||||
String | ANIMATOR_DURATION_SCALE |
This constant was deprecated
in API level 17.
Use ANIMATOR_DURATION_SCALE instead
|
|||||||||
String | APPEND_FOR_LAST_AUDIBLE | Appended to various volume related settings to record the previous values before they the settings were affected by a silent/vibrate ringer mode change. | |||||||||
String | AUTO_TIME |
This constant was deprecated
in API level 17.
Use AUTO_TIME
instead
|
|||||||||
String | AUTO_TIME_ZONE |
This constant was deprecated
in API level 17.
Use AUTO_TIME_ZONE
instead
|
|||||||||
String | BLUETOOTH_DISCOVERABILITY | Determines whether remote devices may discover and/or connect to this device. | |||||||||
String | BLUETOOTH_DISCOVERABILITY_TIMEOUT | Bluetooth discoverability timeout. | |||||||||
String | BLUETOOTH_ON |
This constant was deprecated
in API level 3.
Use BLUETOOTH_ON instead
|
|||||||||
String | DATA_ROAMING |
This constant was deprecated
in API level 3.
Use DATA_ROAMING instead
|
|||||||||
String | DATE_FORMAT | Date format string mm/dd/yyyy dd/mm/yyyy yyyy/mm/dd | |||||||||
String | DEBUG_APP |
This constant was deprecated
in API level 17.
Use DEBUG_APP instead
|
|||||||||
String | DEVICE_PROVISIONED |
This constant was deprecated
in API level 3.
Use DEVICE_PROVISIONED instead
|
|||||||||
String | DIM_SCREEN | This constant was deprecated in API level 17. This setting is no longer used. | |||||||||
String | DTMF_TONE_WHEN_DIALING | Whether the audible DTMF tones are played by the dialer when dialing. | |||||||||
String | END_BUTTON_BEHAVIOR | What happens when the user presses the end call button if they're not on a call. | |||||||||
String | FONT_SCALE | Scaling factor for fonts, float. | |||||||||
String | HAPTIC_FEEDBACK_ENABLED | Whether the haptic feedback (long presses, ...) are enabled. | |||||||||
String | HTTP_PROXY |
This constant was deprecated
in API level 3.
Use HTTP_PROXY instead
|
|||||||||
String | INSTALL_NON_MARKET_APPS |
This constant was deprecated
in API level 3.
Use INSTALL_NON_MARKET_APPS instead
|
|||||||||
String | LOCATION_PROVIDERS_ALLOWED |
This constant was deprecated
in API level 3.
Use LOCATION_PROVIDERS_ALLOWED
instead
|
|||||||||
String | LOCK_PATTERN_ENABLED |
This constant was deprecated
in API level 8.
Use LOCK_PATTERN_ENABLED
instead
|
|||||||||
String | LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED |
This constant was deprecated
in API level 8.
Use
LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
instead
|
|||||||||
String | LOCK_PATTERN_VISIBLE |
This constant was deprecated
in API level 8.
Use LOCK_PATTERN_VISIBLE
instead
|
|||||||||
String | LOGGING_ID |
This constant was deprecated
in API level 3.
Use LOGGING_ID instead
|
|||||||||
String | MODE_RINGER |
This constant was deprecated
in API level 17.
Use MODE_RINGER instead
|
|||||||||
String | MODE_RINGER_STREAMS_AFFECTED | Determines which streams are affected by ringer mode changes. | |||||||||
String | MUTE_STREAMS_AFFECTED | Determines which streams are affected by mute. | |||||||||
String | NETWORK_PREFERENCE |
This constant was deprecated
in API level 3.
Use NETWORK_PREFERENCE instead
|
|||||||||
String | NEXT_ALARM_FORMATTED | A formatted string of the next alarm that is set, or the empty string if there is no alarm set. | |||||||||
String | NOTIFICATION_SOUND | Persistent store for the system-wide default notification sound. | |||||||||
String | PARENTAL_CONTROL_ENABLED |
This constant was deprecated
in API level 3.
Use PARENTAL_CONTROL_ENABLED
instead
|
|||||||||
String | PARENTAL_CONTROL_LAST_UPDATE |
This constant was deprecated
in API level 3.
Use PARENTAL_CONTROL_LAST_UPDATE
instead
|
|||||||||
String | PARENTAL_CONTROL_REDIRECT_URL |
This constant was deprecated
in API level 3.
Use PARENTAL_CONTROL_REDIRECT_URL
instead
|
|||||||||
String | RADIO_BLUETOOTH |
This constant was deprecated
in API level 17.
Use RADIO_BLUETOOTH instead
|
|||||||||
String | RADIO_CELL |
This constant was deprecated
in API level 17.
Use RADIO_CELL instead
|
|||||||||
String | RADIO_NFC |
This constant was deprecated
in API level 17.
Use RADIO_NFC instead
|
|||||||||
String | RADIO_WIFI |
This constant was deprecated
in API level 17.
Use RADIO_WIFI instead
|
|||||||||
String | RINGTONE | Persistent store for the system-wide default ringtone URI. | |||||||||
String | SCREEN_BRIGHTNESS | The screen backlight brightness between 0 and 255. | |||||||||
String | SCREEN_BRIGHTNESS_MODE | Control whether to enable automatic brightness mode. | |||||||||
int | SCREEN_BRIGHTNESS_MODE_AUTOMATIC | SCREEN_BRIGHTNESS_MODE value for automatic mode. | |||||||||
int | SCREEN_BRIGHTNESS_MODE_MANUAL | SCREEN_BRIGHTNESS_MODE value for manual mode. | |||||||||
String | SCREEN_OFF_TIMEOUT | The timeout before the screen turns off. | |||||||||
String | SETTINGS_CLASSNAME |
This constant was deprecated
in API level 3.
Use SETTINGS_CLASSNAME instead
|
|||||||||
String | SETUP_WIZARD_HAS_RUN | Whether the setup wizard has been run before (on first boot), or if it still needs to be run. | |||||||||
String | SHOW_GTALK_SERVICE_STATUS | ||||||||||
String | SHOW_PROCESSES |
This constant was deprecated
in API level 17.
Use SHOW_PROCESSES instead
|
|||||||||
String | SHOW_WEB_SUGGESTIONS | This constant was deprecated in API level 11. Each application that shows web suggestions should have its own setting for this. | |||||||||
String | SOUND_EFFECTS_ENABLED | Whether the sounds effects (key clicks, lid open ...) are enabled. | |||||||||
String | STAY_ON_WHILE_PLUGGED_IN |
This constant was deprecated
in API level 17.
Use STAY_ON_WHILE_PLUGGED_IN instead
|
|||||||||
String | SYS_PROP_SETTING_VERSION | ||||||||||
String | TEXT_AUTO_CAPS | Setting to enable Auto Caps in text editors. | |||||||||
String | TEXT_AUTO_PUNCTUATE | Setting to enable Auto Punctuate in text editors. | |||||||||
String | TEXT_AUTO_REPLACE | Setting to enable Auto Replace (AutoText) in text editors. | |||||||||
String | TEXT_SHOW_PASSWORD | Setting to showing password characters in text editors. | |||||||||
String | TIME_12_24 | Display times as 12 or 24 hours 12 24 | |||||||||
String | TRANSITION_ANIMATION_SCALE |
This constant was deprecated
in API level 17.
Use TRANSITION_ANIMATION_SCALE instead
|
|||||||||
String | USB_MASS_STORAGE_ENABLED |
This constant was deprecated
in API level 3.
Use USB_MASS_STORAGE_ENABLED instead
|
|||||||||
String | USER_ROTATION | Default screen rotation when no other policy applies. | |||||||||
String | USE_GOOGLE_MAIL |
This constant was deprecated
in API level 3.
Use USE_GOOGLE_MAIL instead
|
|||||||||
String | VIBRATE_ON | Whether vibrate is on for different events. | |||||||||
String | VOLUME_ALARM | Alarm volume. | |||||||||
String | VOLUME_BLUETOOTH_SCO | Bluetooth Headset volume. | |||||||||
String | VOLUME_MUSIC | Music/media/gaming volume. | |||||||||
String | VOLUME_NOTIFICATION | Notification volume. | |||||||||
String | VOLUME_RING | Ringer volume. | |||||||||
String | VOLUME_SYSTEM | System/notifications volume. | |||||||||
String | VOLUME_VOICE | Voice call volume. | |||||||||
String | WAIT_FOR_DEBUGGER |
This constant was deprecated
in API level 17.
Use WAIT_FOR_DEBUGGER instead
|
|||||||||
String | WALLPAPER_ACTIVITY |
This constant was deprecated
in API level 17.
Use WallpaperManager instead.
|
|||||||||
String | WIFI_MAX_DHCP_RETRY_COUNT |
This constant was deprecated
in API level 3.
Use
WIFI_MAX_DHCP_RETRY_COUNT instead
|
|||||||||
String | WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS |
This constant was deprecated
in API level 3.
Use
WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS instead
|
|||||||||
String | WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON |
This constant was deprecated
in API level 3.
Use
WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON instead
|
|||||||||
String | WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY |
This constant was deprecated
in API level 3.
Use
WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY instead
|
|||||||||
String | WIFI_NUM_OPEN_NETWORKS_KEPT |
This constant was deprecated
in API level 3.
Use WIFI_NUM_OPEN_NETWORKS_KEPT
instead
|
|||||||||
String | WIFI_ON |
This constant was deprecated
in API level 3.
Use WIFI_ON instead
|
|||||||||
String | WIFI_SLEEP_POLICY |
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY instead
|
|||||||||
int | WIFI_SLEEP_POLICY_DEFAULT |
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY_DEFAULT instead
|
|||||||||
int | WIFI_SLEEP_POLICY_NEVER |
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY_NEVER instead
|
|||||||||
int | WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED |
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED instead
|
|||||||||
String | WIFI_STATIC_DNS1 |
This constant was deprecated
in API level 17.
Use WifiManager instead
|
|||||||||
String | WIFI_STATIC_DNS2 |
This constant was deprecated
in API level 17.
Use WifiManager instead
|
|||||||||
String | WIFI_STATIC_GATEWAY |
This constant was deprecated
in API level 17.
Use WifiManager instead
|
|||||||||
String | WIFI_STATIC_IP |
This constant was deprecated
in API level 17.
Use WifiManager instead
|
|||||||||
String | WIFI_STATIC_NETMASK |
This constant was deprecated
in API level 17.
Use WifiManager instead
|
|||||||||
String | WIFI_USE_STATIC_IP |
This constant was deprecated
in API level 17.
Use WifiManager instead
|
|||||||||
String | WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE |
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
instead
|
|||||||||
String | WIFI_WATCHDOG_AP_COUNT |
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_AP_COUNT instead
|
|||||||||
String | WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS |
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS instead
|
|||||||||
String | WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED |
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED instead
|
|||||||||
String | WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS |
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
instead
|
|||||||||
String | WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT |
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT instead
|
|||||||||
String | WIFI_WATCHDOG_MAX_AP_CHECKS |
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_MAX_AP_CHECKS
instead
|
|||||||||
String | WIFI_WATCHDOG_ON |
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_ON instead
|
|||||||||
String | WIFI_WATCHDOG_PING_COUNT |
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_PING_COUNT instead
|
|||||||||
String | WIFI_WATCHDOG_PING_DELAY_MS |
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_PING_DELAY_MS
instead
|
|||||||||
String | WIFI_WATCHDOG_PING_TIMEOUT_MS |
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_PING_TIMEOUT_MS
instead
|
|||||||||
String | WINDOW_ANIMATION_SCALE |
This constant was deprecated
in API level 17.
Use WINDOW_ANIMATION_SCALE instead
|
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.provider.Settings.NameValueTable
| |||||||||||
From interface
android.provider.BaseColumns
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_URI | The content:// style URL for this table | ||||||||||
DEFAULT_ALARM_ALERT_URI | A Uri that will point to the current default alarm alert at
any given time. |
||||||||||
DEFAULT_NOTIFICATION_URI | A Uri that will point to the current default notification
sound at any given time. |
||||||||||
DEFAULT_RINGTONE_URI | A Uri that will point to the current default ringtone at any
given time. |
||||||||||
VOLUME_SETTINGS | The mapping of stream type (integer) to its setting. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience function to read all of the current
configuration-related settings into a
Configuration object. | |||||||||||
Convenience function for retrieving a single system settings value
as a floating point number.
| |||||||||||
Convenience function for retrieving a single system settings value
as a float.
| |||||||||||
Convenience function for retrieving a single system settings value
as an integer.
| |||||||||||
Convenience function for retrieving a single system settings value
as an integer.
| |||||||||||
Convenience function for retrieving a single system settings value
as a
long . | |||||||||||
Convenience function for retrieving a single system settings value
as a
long . | |||||||||||
This method was deprecated
in API level 17.
- Do not use
| |||||||||||
Look up a name in the database.
| |||||||||||
Construct the content URI for a particular name/value pair,
useful for monitoring changes with a ContentObserver.
| |||||||||||
Convenience function to write a batch of configuration-related
settings from a
Configuration object. | |||||||||||
Convenience function for updating a single settings value as a
floating point number.
| |||||||||||
Convenience function for updating a single settings value as an
integer.
| |||||||||||
Convenience function for updating a single settings value as a long
integer.
| |||||||||||
Store a name/value pair into the database.
| |||||||||||
This method was deprecated
in API level 17.
- Do not use
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.provider.Settings.NameValueTable
| |||||||||||
From class
java.lang.Object
|
Control whether the accelerometer will be used to change screen orientation. If 0, it will not be used unless explicitly requested by the application; if 1, it will be used by default unless explicitly disabled by the application.
This constant was deprecated
in API level 17.
Use AIRPLANE_MODE_ON
instead
This constant was deprecated
in API level 17.
Use AIRPLANE_MODE_RADIOS
instead
Persistent store for the system-wide default alarm alert.
This constant was deprecated
in API level 17.
Use ALWAYS_FINISH_ACTIVITIES
instead
If 1, the activity manager will aggressively finish activities and processes as soon as they are no longer needed. If 0, the normal extended lifetime is used.
This constant was deprecated
in API level 17.
Use ANIMATOR_DURATION_SCALE
instead
Scaling factor for Animator-based animations. This affects both the start delay and duration of all such animations. Setting to 0 will cause animations to end immediately. The default value is 1.
Appended to various volume related settings to record the previous values before they the settings were affected by a silent/vibrate ringer mode change.
This constant was deprecated
in API level 17.
Use AUTO_TIME_ZONE
instead
Determines whether remote devices may discover and/or connect to this device.
Type: INT
2 -- discoverable and connectable 1 -- connectable but not discoverable 0 -- neither connectable nor discoverableBluetooth discoverability timeout. If this value is nonzero, then Bluetooth becomes discoverable for a certain number of seconds, after which is becomes simply connectable. The value is in seconds.
This constant was deprecated
in API level 3.
Use BLUETOOTH_ON
instead
This constant was deprecated
in API level 3.
Use DATA_ROAMING
instead
Date format string mm/dd/yyyy dd/mm/yyyy yyyy/mm/dd
This constant was deprecated
in API level 17.
Use DEBUG_APP
instead
Name of an application package to be debugged.
This constant was deprecated
in API level 3.
Use DEVICE_PROVISIONED
instead
This constant was deprecated
in API level 17.
This setting is no longer used.
Whether or not to dim the screen. 0=no 1=yes
Whether the audible DTMF tones are played by the dialer when dialing. The value is boolean (1 or 0).
What happens when the user presses the end call button if they're not
on a call.
Values:
0 - The end button does nothing.
1 - The end button goes to the home screen.
2 - The end button puts the device to sleep and locks the keyguard.
3 - The end button goes to the home screen. If the user is already on the
home screen, it puts the device to sleep.
Scaling factor for fonts, float.
Whether the haptic feedback (long presses, ...) are enabled. The value is boolean (1 or 0).
This constant was deprecated
in API level 3.
Use INSTALL_NON_MARKET_APPS
instead
This constant was deprecated
in API level 3.
Use LOCATION_PROVIDERS_ALLOWED
instead
This constant was deprecated
in API level 8.
Use LOCK_PATTERN_ENABLED
instead
This constant was deprecated
in API level 8.
Use
LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
instead
This constant was deprecated
in API level 8.
Use LOCK_PATTERN_VISIBLE
instead
Determines which streams are affected by ringer mode changes. The stream type's bit should be set to 1 if it should be muted when going into an inaudible ringer mode.
Determines which streams are affected by mute. The stream type's bit should be set to 1 if it should be muted when a mute request is received.
This constant was deprecated
in API level 3.
Use NETWORK_PREFERENCE
instead
A formatted string of the next alarm that is set, or the empty string if there is no alarm set.
Persistent store for the system-wide default notification sound.
This constant was deprecated
in API level 3.
Use PARENTAL_CONTROL_ENABLED
instead
This constant was deprecated
in API level 3.
Use PARENTAL_CONTROL_LAST_UPDATE
instead
This constant was deprecated
in API level 3.
Use PARENTAL_CONTROL_REDIRECT_URL
instead
This constant was deprecated
in API level 17.
Use RADIO_BLUETOOTH
instead
Persistent store for the system-wide default ringtone URI.
If you need to play the default ringtone at any given time, it is recommended
you give DEFAULT_RINGTONE_URI
to the media player. It will resolve
to the set default ringtone at the time of playing.
The screen backlight brightness between 0 and 255.
Control whether to enable automatic brightness mode.
SCREEN_BRIGHTNESS_MODE value for automatic mode.
SCREEN_BRIGHTNESS_MODE value for manual mode.
The timeout before the screen turns off.
This constant was deprecated
in API level 3.
Use SETTINGS_CLASSNAME
instead
Whether the setup wizard has been run before (on first boot), or if it still needs to be run. nonzero = it has been run in the past 0 = it has not been run in the past
This constant was deprecated
in API level 17.
Use SHOW_PROCESSES
instead
Control whether the process CPU usage meter should be shown.
This constant was deprecated
in API level 11.
Each application that shows web suggestions should have its own
setting for this.
Whether the sounds effects (key clicks, lid open ...) are enabled. The value is boolean (1 or 0).
This constant was deprecated
in API level 17.
Use STAY_ON_WHILE_PLUGGED_IN
instead
Setting to enable Auto Caps in text editors. 1 = On, 0 = Off
Setting to enable Auto Punctuate in text editors. 1 = On, 0 = Off. This feature converts two spaces to a "." and space.
Setting to enable Auto Replace (AutoText) in text editors. 1 = On, 0 = Off
Setting to showing password characters in text editors. 1 = On, 0 = Off
Display times as 12 or 24 hours 12 24
This constant was deprecated
in API level 17.
Use TRANSITION_ANIMATION_SCALE
instead
Scaling factor for activity transition animations. Setting to 0 will disable window animations.
This constant was deprecated
in API level 3.
Use USB_MASS_STORAGE_ENABLED
instead
Default screen rotation when no other policy applies.
When ACCELEROMETER_ROTATION
is zero and no on-screen Activity expresses a
preference, this rotation value will be used. Must be one of the
Surface rotation constants
.
This constant was deprecated
in API level 3.
Use USE_GOOGLE_MAIL
instead
Whether vibrate is on for different events. This is used internally, changing this value will not change the vibrate. See AudioManager.
Alarm volume. This is used internally, changing this value will not change the volume. See AudioManager.
Bluetooth Headset volume. This is used internally, changing this value will not change the volume. See AudioManager.
Music/media/gaming volume. This is used internally, changing this value will not change the volume. See AudioManager.
Notification volume. This is used internally, changing this value will not change the volume. See AudioManager.
Ringer volume. This is used internally, changing this value will not change the volume. See AudioManager.
System/notifications volume. This is used internally, changing this value will not change the volume. See AudioManager.
Voice call volume. This is used internally, changing this value will not change the volume. See AudioManager.
This constant was deprecated
in API level 17.
Use WAIT_FOR_DEBUGGER
instead
If 1, when launching DEBUG_APP it will wait for the debugger before starting user code. If 0, it will run normally.
This constant was deprecated
in API level 17.
Use WallpaperManager
instead.
Name of activity to use for wallpaper on the home screen.
This constant was deprecated
in API level 3.
Use
WIFI_MAX_DHCP_RETRY_COUNT
instead
This constant was deprecated
in API level 3.
Use
WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
instead
This constant was deprecated
in API level 3.
Use
WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
instead
This constant was deprecated
in API level 3.
Use
WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
instead
This constant was deprecated
in API level 3.
Use WIFI_NUM_OPEN_NETWORKS_KEPT
instead
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY
instead
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY_DEFAULT
instead
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY_NEVER
instead
This constant was deprecated
in API level 17.
Use WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED
instead
This constant was deprecated
in API level 17.
Use WifiManager
instead
If using static IP, the primary DNS's IP address.
Example: "192.168.1.1"
This constant was deprecated
in API level 17.
Use WifiManager
instead
If using static IP, the secondary DNS's IP address.
Example: "192.168.1.2"
This constant was deprecated
in API level 17.
Use WifiManager
instead
If using static IP, the gateway's IP address.
Example: "192.168.1.1"
This constant was deprecated
in API level 17.
Use WifiManager
instead
The static IP address.
Example: "192.168.1.51"
This constant was deprecated
in API level 17.
Use WifiManager
instead
If using static IP, the net mask.
Example: "255.255.255.0"
This constant was deprecated
in API level 17.
Use WifiManager
instead
Whether to use static IP and other static network attributes.
Set to 1 for true and 0 for false.
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
instead
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_AP_COUNT
instead
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
instead
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
instead
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
instead
This constant was deprecated
in API level 3.
Use
WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
instead
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_MAX_AP_CHECKS
instead
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_ON
instead
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_PING_COUNT
instead
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_PING_DELAY_MS
instead
This constant was deprecated
in API level 3.
Use WIFI_WATCHDOG_PING_TIMEOUT_MS
instead
This constant was deprecated
in API level 17.
Use WINDOW_ANIMATION_SCALE
instead
Scaling factor for normal window animations. Setting to 0 will disable window animations.
A Uri
that will point to the current default alarm alert at
any given time.
A Uri
that will point to the current default notification
sound at any given time.
A Uri
that will point to the current default ringtone at any
given time.
If the current default ringtone is in the DRM provider and the caller does not have permission, the exception will be a FileNotFoundException.
The mapping of stream type (integer) to its setting.
Convenience function to read all of the current
configuration-related settings into a
Configuration
object.
cr | The ContentResolver to access. |
---|---|
outConfig | Where to place the configuration settings. |
Convenience function for retrieving a single system 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.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to retrieve. |
def | Value to return if the setting is not defined. |
Convenience function for retrieving a single system 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 Settings.SettingNotFoundException
.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to retrieve. |
Settings.SettingNotFoundException | Thrown if a setting by the given name can't be found or the setting value is not a float. |
---|
Convenience function for retrieving a single system 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 Settings.SettingNotFoundException
.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to retrieve. |
Settings.SettingNotFoundException | Thrown if a setting by the given name can't be found or the setting value is not an integer. |
---|
Convenience function for retrieving a single system 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.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to retrieve. |
def | Value to return if the setting is not defined. |
Convenience function for retrieving a single system 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
.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to retrieve. |
def | Value to return if the setting is not defined. |
long
.
Convenience function for retrieving a single system 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 Settings.SettingNotFoundException
.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to retrieve. |
Settings.SettingNotFoundException | Thrown if a setting by the given name can't be found or the setting value is not an integer. |
---|
This method was deprecated
in API level 17.
- Do not use
Look up a name in the database.
resolver | to access the database with |
---|---|
name | to look up in the table |
Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver.
name | to look up in the table |
---|
Convenience function to write a batch of configuration-related
settings from a Configuration
object.
cr | The ContentResolver to access. |
---|---|
config | The settings to write. |
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.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to modify. |
value | The new value for the setting. |
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.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to modify. |
value | The new value for the setting. |
Convenience function for updating a single 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.
cr | The ContentResolver to access. |
---|---|
name | The name of the setting to modify. |
value | The new value for the setting. |
Store a name/value pair into the database.
resolver | to access the database with |
---|---|
name | to store |
value | to associate with the name |
This method was deprecated
in API level 17.
- Do not use