public static final class Settings.System extends Settings.NameValueTable
Modifier and Type | Field and Description |
---|---|
static String |
ACCELEROMETER_ROTATION
Control whether the accelerometer will be used to change screen
orientation.
|
static String |
ADB_ENABLED
Deprecated.
Use
Settings.Global.ADB_ENABLED
instead |
static String |
ADVANCED_SETTINGS
Is advanced settings mode turned on.
|
static int |
ADVANCED_SETTINGS_DEFAULT
ADVANCED_SETTINGS default value.
|
static String |
AIRPLANE_MODE_ON
Deprecated.
Use
Settings.Global.AIRPLANE_MODE_ON instead |
static String |
AIRPLANE_MODE_RADIOS
Deprecated.
Use
Settings.Global.AIRPLANE_MODE_RADIOS instead |
static String |
AIRPLANE_MODE_TOGGLEABLE_RADIOS
Deprecated.
Use
Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS instead
|
static String |
ALARM_ALERT
Persistent store for the system-wide default alarm alert.
|
static String |
ALWAYS_FINISH_ACTIVITIES
Deprecated.
Use
Settings.Global.ALWAYS_FINISH_ACTIVITIES instead |
static String |
ANDROID_ID
Deprecated.
Use
Settings.Secure.ANDROID_ID instead |
static String |
ANIMATOR_DURATION_SCALE
Deprecated.
Use
Settings.Global.ANIMATOR_DURATION_SCALE instead |
static 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.
|
static String |
AUTO_TIME
Deprecated.
Use
Settings.Global.AUTO_TIME
instead |
static String |
AUTO_TIME_ZONE
Deprecated.
Use
Settings.Global.AUTO_TIME_ZONE
instead |
static String |
BLUETOOTH_DISCOVERABILITY
Determines whether remote devices may discover and/or connect to
this device.
|
static String |
BLUETOOTH_DISCOVERABILITY_TIMEOUT
Bluetooth discoverability timeout.
|
static String |
BLUETOOTH_ON
Deprecated.
Use
Settings.Global.BLUETOOTH_ON instead |
static String |
CAR_DOCK_SOUND
Deprecated.
Use
Settings.Global.CAR_DOCK_SOUND
instead |
static String |
CAR_UNDOCK_SOUND
Deprecated.
Use
Settings.Global.CAR_UNDOCK_SOUND
instead |
static Uri |
CONTENT_URI
The content:// style URL for this table
|
static String |
DATA_ROAMING
Deprecated.
Use
Settings.Global.DATA_ROAMING instead |
static String |
DATE_FORMAT
Date format string
mm/dd/yyyy
dd/mm/yyyy
yyyy/mm/dd
|
static String |
DEBUG_APP
Deprecated.
Use
Settings.Global.DEBUG_APP instead |
static Uri |
DEFAULT_ALARM_ALERT_URI
A
Uri that will point to the current default alarm alert at
any given time. |
static Uri |
DEFAULT_NOTIFICATION_URI
A
Uri that will point to the current default notification
sound at any given time. |
static Uri |
DEFAULT_RINGTONE_URI
A
Uri that will point to the current default ringtone at any
given time. |
static String |
DESK_DOCK_SOUND
Deprecated.
Use
Settings.Global.DESK_DOCK_SOUND
instead |
static String |
DESK_UNDOCK_SOUND
Deprecated.
Use
Settings.Global.DESK_UNDOCK_SOUND
instead |
static String |
DEVICE_PROVISIONED
Deprecated.
Use
Settings.Global.DEVICE_PROVISIONED instead |
static String |
DIM_SCREEN
Deprecated.
This setting is no longer used.
|
static String |
DOCK_SOUNDS_ENABLED
Deprecated.
Use
Settings.Global.DOCK_SOUNDS_ENABLED
instead |
static String |
DTMF_TONE_TYPE_WHEN_DIALING
CDMA only settings
DTMF tone type played by the dialer when dialing.
|
static String |
DTMF_TONE_WHEN_DIALING
Whether the audible DTMF tones are played by the dialer when dialing.
|
static String |
END_BUTTON_BEHAVIOR
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. |
static int |
END_BUTTON_BEHAVIOR_DEFAULT
END_BUTTON_BEHAVIOR default value.
|
static int |
END_BUTTON_BEHAVIOR_HOME
END_BUTTON_BEHAVIOR value for "go home".
|
static int |
END_BUTTON_BEHAVIOR_SLEEP
END_BUTTON_BEHAVIOR value for "go to sleep".
|
static String |
FONT_SCALE
Scaling factor for fonts, float.
|
static String |
HAPTIC_FEEDBACK_ENABLED
Whether the haptic feedback (long presses, ...) are enabled.
|
static String |
HEARING_AID
Whether the hearing aid is enabled.
|
static String |
HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY
Control whether the rotation lock toggle in the System UI should be hidden.
|
static String |
HTTP_PROXY
Deprecated.
Use
Settings.Global.HTTP_PROXY instead |
static String |
INSTALL_NON_MARKET_APPS
Deprecated.
Use
Settings.Global.INSTALL_NON_MARKET_APPS instead |
static String |
LOCATION_PROVIDERS_ALLOWED
Deprecated.
Use
Settings.Secure.LOCATION_PROVIDERS_ALLOWED
instead |
static String |
LOCK_PATTERN_ENABLED
Deprecated.
Use
Settings.Secure.LOCK_PATTERN_ENABLED
instead |
static String |
LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
Deprecated.
|
static String |
LOCK_PATTERN_VISIBLE
Deprecated.
Use
Settings.Secure.LOCK_PATTERN_VISIBLE
instead |
static String |
LOCK_SOUND
Deprecated.
Use
Settings.Global.LOCK_SOUND
instead |
static String |
LOCKSCREEN_DISABLED
Whether the lockscreen should be completely disabled.
|
static String |
LOCKSCREEN_SOUNDS_ENABLED
Whether to play sounds when the keyguard is shown and dismissed.
|
static String |
LOGGING_ID
Deprecated.
Use
Settings.Secure.LOGGING_ID instead |
static String |
LOW_BATTERY_SOUND
Deprecated.
Use
Settings.Global.LOW_BATTERY_SOUND
instead |
static String |
MEDIA_BUTTON_RECEIVER
Persistent store for the system default media button event receiver.
|
static String |
MODE_RINGER
Deprecated.
Use
Settings.Global.MODE_RINGER instead |
static String |
MODE_RINGER_STREAMS_AFFECTED
Determines which streams are affected by ringer mode changes.
|
static String |
MUTE_STREAMS_AFFECTED
Determines which streams are affected by mute.
|
static String |
NETWORK_PREFERENCE
Deprecated.
Use
Settings.Global.NETWORK_PREFERENCE instead |
static String |
NEXT_ALARM_FORMATTED
A formatted string of the next alarm that is set, or the empty string
if there is no alarm set.
|
static String |
NOTIFICATION_LIGHT_PULSE
Whether the notification LED should repeatedly flash when a notification is
pending.
|
static String |
NOTIFICATION_SOUND
Persistent store for the system-wide default notification sound.
|
static String |
NOTIFICATIONS_USE_RING_VOLUME
Deprecated.
|
static String |
PARENTAL_CONTROL_ENABLED
Deprecated.
Use
Settings.Secure.PARENTAL_CONTROL_ENABLED
instead |
static String |
PARENTAL_CONTROL_LAST_UPDATE
Deprecated.
Use
Settings.Secure.PARENTAL_CONTROL_LAST_UPDATE
instead |
static String |
PARENTAL_CONTROL_REDIRECT_URL
Deprecated.
Use
Settings.Secure.PARENTAL_CONTROL_REDIRECT_URL
instead |
static String |
POINTER_LOCATION
Show pointer location on screen?
0 = no
1 = yes
|
static String |
POINTER_SPEED
Pointer speed setting.
|
static String |
POWER_SOUNDS_ENABLED
Deprecated.
Use
Settings.Global.POWER_SOUNDS_ENABLED
instead |
static String |
RADIO_BLUETOOTH
Deprecated.
Use
Settings.Global.RADIO_BLUETOOTH instead |
static String |
RADIO_CELL
Deprecated.
Use
Settings.Global.RADIO_CELL instead |
static String |
RADIO_NFC
Deprecated.
Use
Settings.Global.RADIO_NFC instead |
static String |
RADIO_WIFI
Deprecated.
Use
Settings.Global.RADIO_WIFI instead |
static String |
RADIO_WIMAX
Deprecated.
Use
Settings.Global.RADIO_WIMAX instead
|
static String |
RINGTONE
Persistent store for the system-wide default ringtone URI.
|
static String |
SCREEN_AUTO_BRIGHTNESS_ADJ
Adjustment to auto-brightness to make it generally more (>0.0 <1.0)
or less (<0.0 >-1.0) bright.
|
static String |
SCREEN_BRIGHTNESS
The screen backlight brightness between 0 and 255.
|
static String |
SCREEN_BRIGHTNESS_MODE
Control whether to enable automatic brightness mode.
|
static int |
SCREEN_BRIGHTNESS_MODE_AUTOMATIC
SCREEN_BRIGHTNESS_MODE value for automatic mode.
|
static int |
SCREEN_BRIGHTNESS_MODE_MANUAL
SCREEN_BRIGHTNESS_MODE value for manual mode.
|
static String |
SCREEN_OFF_TIMEOUT
The timeout before the screen turns off.
|
static String |
SETTINGS_CLASSNAME
Deprecated.
Use
Settings.Secure.SETTINGS_CLASSNAME instead |
static String[] |
SETTINGS_TO_BACKUP
Settings to backup.
|
static String |
SETUP_WIZARD_HAS_RUN
Whether the setup wizard has been run before (on first boot), or if
it still needs to be run.
|
static String |
SHOW_GTALK_SERVICE_STATUS |
static String |
SHOW_PROCESSES
Deprecated.
Use
Settings.Global.SHOW_PROCESSES instead |
static String |
SHOW_TOUCHES
Show touch positions on screen?
0 = no
1 = yes
|
static String |
SHOW_WEB_SUGGESTIONS
Deprecated.
Each application that shows web suggestions should have its own
setting for this.
|
static String |
SIP_ADDRESS_ONLY
One of the sip call options: Only if destination is a SIP address.
|
static String |
SIP_ALWAYS
One of the sip call options: Always use SIP with network access.
|
static String |
SIP_ASK_ME_EACH_TIME
One of the sip call options: Always ask me each time.
|
static String |
SIP_CALL_OPTIONS
Call Preference String.
|
static String |
SIP_RECEIVE_CALLS
Receive incoming SIP calls?
0 = no
1 = yes
|
static String |
SOUND_EFFECTS_ENABLED
Whether the sounds effects (key clicks, lid open ...) are enabled.
|
static String |
STAY_ON_WHILE_PLUGGED_IN
Deprecated.
Use
Settings.Global.STAY_ON_WHILE_PLUGGED_IN instead |
static String |
SYS_PROP_SETTING_VERSION |
static String |
TEXT_AUTO_CAPS
Setting to enable Auto Caps in text editors.
|
static String |
TEXT_AUTO_PUNCTUATE
Setting to enable Auto Punctuate in text editors.
|
static String |
TEXT_AUTO_REPLACE
Setting to enable Auto Replace (AutoText) in text editors.
|
static String |
TEXT_SHOW_PASSWORD
Setting to showing password characters in text editors.
|
static String |
TIME_12_24
Display times as 12 or 24 hours
12
24
|
static String |
TRANSITION_ANIMATION_SCALE
Deprecated.
Use
Settings.Global.TRANSITION_ANIMATION_SCALE instead |
static String |
TTY_MODE
CDMA only settings
TTY Mode
0 = OFF
1 = FULL
2 = VCO
3 = HCO
|
static String |
UNLOCK_SOUND
Deprecated.
Use
Settings.Global.UNLOCK_SOUND
instead |
static String |
USB_MASS_STORAGE_ENABLED
Deprecated.
Use
Settings.Global.USB_MASS_STORAGE_ENABLED instead |
static String |
USE_GOOGLE_MAIL
Deprecated.
Use
Settings.Global.USE_GOOGLE_MAIL instead |
static String |
USER_ROTATION
Default screen rotation when no other policy applies.
|
static String |
VIBRATE_IN_SILENT
Whether silent mode should allow vibration feedback.
|
static String |
VIBRATE_INPUT_DEVICES
If 1, redirects the system vibrator to all currently attached input devices
that support vibration.
|
static String |
VIBRATE_ON
Whether vibrate is on for different events.
|
static String |
VIBRATE_WHEN_RINGING
Whether the phone vibrates when it is ringing due to an incoming call.
|
static String |
VOLUME_ALARM
Alarm volume.
|
static String |
VOLUME_BLUETOOTH_SCO
Bluetooth Headset volume.
|
static String |
VOLUME_MASTER
Master volume (float in the range 0.0f to 1.0f).
|
static String |
VOLUME_MASTER_MUTE
Master volume mute (int 1 = mute, 0 = not muted).
|
static String |
VOLUME_MUSIC
Music/media/gaming volume.
|
static String |
VOLUME_NOTIFICATION
Notification volume.
|
static String |
VOLUME_RING
Ringer volume.
|
static String[] |
VOLUME_SETTINGS
The mapping of stream type (integer) to its setting.
|
static String |
VOLUME_SYSTEM
System/notifications volume.
|
static String |
VOLUME_VOICE
Voice call volume.
|
static String |
WAIT_FOR_DEBUGGER
Deprecated.
Use
Settings.Global.WAIT_FOR_DEBUGGER instead |
static String |
WALLPAPER_ACTIVITY
Deprecated.
Use
WallpaperManager instead. |
static String |
WIFI_MAX_DHCP_RETRY_COUNT
Deprecated.
Use
Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT instead |
static String |
WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
Deprecated.
|
static String |
WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
Deprecated.
|
static String |
WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
Deprecated.
|
static String |
WIFI_NUM_OPEN_NETWORKS_KEPT
Deprecated.
Use
Settings.Global.WIFI_NUM_OPEN_NETWORKS_KEPT
instead |
static String |
WIFI_ON
Deprecated.
Use
Settings.Global.WIFI_ON instead |
static String |
WIFI_SLEEP_POLICY
Deprecated.
Use
Settings.Global.WIFI_SLEEP_POLICY instead |
static int |
WIFI_SLEEP_POLICY_DEFAULT
Deprecated.
Use
Settings.Global.WIFI_SLEEP_POLICY_DEFAULT instead |
static int |
WIFI_SLEEP_POLICY_NEVER
Deprecated.
Use
Settings.Global.WIFI_SLEEP_POLICY_NEVER instead |
static int |
WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED
Deprecated.
|
static String |
WIFI_STATIC_DNS1
Deprecated.
Use
WifiManager instead |
static String |
WIFI_STATIC_DNS2
Deprecated.
Use
WifiManager instead |
static String |
WIFI_STATIC_GATEWAY
Deprecated.
Use
WifiManager instead |
static String |
WIFI_STATIC_IP
Deprecated.
Use
WifiManager instead |
static String |
WIFI_STATIC_NETMASK
Deprecated.
Use
WifiManager instead |
static String |
WIFI_USE_STATIC_IP
Deprecated.
Use
WifiManager instead |
static String |
WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
Deprecated.
|
static String |
WIFI_WATCHDOG_AP_COUNT
Deprecated.
Use
Settings.Secure.WIFI_WATCHDOG_AP_COUNT instead |
static String |
WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
Deprecated.
|
static String |
WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
Deprecated.
|
static String |
WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
Deprecated.
|
static String |
WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
Deprecated.
|
static String |
WIFI_WATCHDOG_MAX_AP_CHECKS
Deprecated.
Use
Settings.Secure.WIFI_WATCHDOG_MAX_AP_CHECKS
instead |
static String |
WIFI_WATCHDOG_ON
Deprecated.
Use
Settings.Global.WIFI_WATCHDOG_ON instead |
static String |
WIFI_WATCHDOG_PING_COUNT
Deprecated.
Use
Settings.Secure.WIFI_WATCHDOG_PING_COUNT instead |
static String |
WIFI_WATCHDOG_PING_DELAY_MS
Deprecated.
Use
Settings.Secure.WIFI_WATCHDOG_PING_DELAY_MS
instead |
static String |
WIFI_WATCHDOG_PING_TIMEOUT_MS
Deprecated.
Use
Settings.Secure.WIFI_WATCHDOG_PING_TIMEOUT_MS
instead |
static String |
WINDOW_ANIMATION_SCALE
Deprecated.
Use
Settings.Global.WINDOW_ANIMATION_SCALE instead |
static String |
WINDOW_ORIENTATION_LISTENER_LOG
Log raw orientation data from
WindowOrientationListener for use with the
orientationplot.py tool. |
NAME, VALUE
_COUNT, _ID
Constructor and Description |
---|
Settings.System() |
Modifier and Type | Method and Description |
---|---|
static void |
clearConfiguration(Configuration inoutConfig) |
static void |
getConfiguration(ContentResolver cr,
Configuration outConfig)
Convenience function to read all of the current
configuration-related settings into a
Configuration object. |
static void |
getConfigurationForUser(ContentResolver cr,
Configuration outConfig,
int userHandle) |
static float |
getFloat(ContentResolver cr,
String name)
Convenience function for retrieving a single system settings value
as a float.
|
static float |
getFloat(ContentResolver cr,
String name,
float def)
Convenience function for retrieving a single system settings value
as a floating point number.
|
static float |
getFloatForUser(ContentResolver cr,
String name,
float def,
int userHandle) |
static float |
getFloatForUser(ContentResolver cr,
String name,
int userHandle) |
static int |
getInt(ContentResolver cr,
String name)
Convenience function for retrieving a single system settings value
as an integer.
|
static int |
getInt(ContentResolver cr,
String name,
int def)
Convenience function for retrieving a single system settings value
as an integer.
|
static int |
getIntForUser(ContentResolver cr,
String name,
int userHandle) |
static int |
getIntForUser(ContentResolver cr,
String name,
int def,
int userHandle) |
static long |
getLong(ContentResolver cr,
String name)
Convenience function for retrieving a single system settings value
as a
long . |
static long |
getLong(ContentResolver cr,
String name,
long def)
Convenience function for retrieving a single system settings value
as a
long . |
static long |
getLongForUser(ContentResolver cr,
String name,
int userHandle) |
static long |
getLongForUser(ContentResolver cr,
String name,
long def,
int userHandle) |
static void |
getMovedKeys(HashSet<String> outKeySet) |
static void |
getNonLegacyMovedKeys(HashSet<String> outKeySet) |
static boolean |
getShowGTalkServiceStatus(ContentResolver cr)
Deprecated.
- Do not use
|
static boolean |
getShowGTalkServiceStatusForUser(ContentResolver cr,
int userHandle)
Deprecated.
- Do not use
|
static String |
getString(ContentResolver resolver,
String name)
Look up a name in the database.
|
static String |
getStringForUser(ContentResolver resolver,
String name,
int userHandle) |
static Uri |
getUriFor(String name)
Construct the content URI for a particular name/value pair,
useful for monitoring changes with a ContentObserver.
|
static boolean |
hasInterestingConfigurationChanges(int changes) |
static boolean |
putConfiguration(ContentResolver cr,
Configuration config)
Convenience function to write a batch of configuration-related
settings from a
Configuration object. |
static boolean |
putConfigurationForUser(ContentResolver cr,
Configuration config,
int userHandle) |
static boolean |
putFloat(ContentResolver cr,
String name,
float value)
Convenience function for updating a single settings value as a
floating point number.
|
static boolean |
putFloatForUser(ContentResolver cr,
String name,
float value,
int userHandle) |
static boolean |
putInt(ContentResolver cr,
String name,
int value)
Convenience function for updating a single settings value as an
integer.
|
static boolean |
putIntForUser(ContentResolver cr,
String name,
int value,
int userHandle) |
static boolean |
putLong(ContentResolver cr,
String name,
long value)
Convenience function for updating a single settings value as a long
integer.
|
static boolean |
putLongForUser(ContentResolver cr,
String name,
long value,
int userHandle) |
static boolean |
putString(ContentResolver resolver,
String name,
String value)
Store a name/value pair into the database.
|
static boolean |
putStringForUser(ContentResolver resolver,
String name,
String value,
int userHandle) |
static void |
setShowGTalkServiceStatus(ContentResolver cr,
boolean flag)
Deprecated.
- Do not use
|
static void |
setShowGTalkServiceStatusForUser(ContentResolver cr,
boolean flag,
int userHandle)
Deprecated.
- Do not use
|
getUriFor, putString
public static final String SYS_PROP_SETTING_VERSION
public static final Uri CONTENT_URI
@Deprecated public static final String STAY_ON_WHILE_PLUGGED_IN
Settings.Global.STAY_ON_WHILE_PLUGGED_IN
insteadpublic static final String END_BUTTON_BEHAVIOR
public static final int END_BUTTON_BEHAVIOR_HOME
public static final int END_BUTTON_BEHAVIOR_SLEEP
public static final int END_BUTTON_BEHAVIOR_DEFAULT
public static final String ADVANCED_SETTINGS
public static final int ADVANCED_SETTINGS_DEFAULT
@Deprecated public static final String AIRPLANE_MODE_ON
Settings.Global.AIRPLANE_MODE_ON
instead@Deprecated public static final String RADIO_BLUETOOTH
Settings.Global.RADIO_BLUETOOTH
instead@Deprecated public static final String RADIO_WIFI
Settings.Global.RADIO_WIFI
instead@Deprecated public static final String RADIO_WIMAX
Settings.Global.RADIO_WIMAX
instead
@Deprecated public static final String RADIO_CELL
Settings.Global.RADIO_CELL
instead@Deprecated public static final String RADIO_NFC
Settings.Global.RADIO_NFC
instead@Deprecated public static final String AIRPLANE_MODE_RADIOS
Settings.Global.AIRPLANE_MODE_RADIOS
instead@Deprecated public static final String AIRPLANE_MODE_TOGGLEABLE_RADIOS
Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS
instead
@Deprecated public static final String WIFI_SLEEP_POLICY
Settings.Global.WIFI_SLEEP_POLICY
instead@Deprecated public static final int WIFI_SLEEP_POLICY_DEFAULT
Settings.Global.WIFI_SLEEP_POLICY_DEFAULT
instead@Deprecated public static final int WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED
Settings.Global.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED
instead@Deprecated public static final int WIFI_SLEEP_POLICY_NEVER
Settings.Global.WIFI_SLEEP_POLICY_NEVER
instead@Deprecated public static final String MODE_RINGER
Settings.Global.MODE_RINGER
instead@Deprecated public static final String WIFI_USE_STATIC_IP
WifiManager
insteadSet to 1 for true and 0 for false.
@Deprecated public static final String WIFI_STATIC_IP
WifiManager
insteadExample: "192.168.1.51"
@Deprecated public static final String WIFI_STATIC_GATEWAY
WifiManager
insteadExample: "192.168.1.1"
@Deprecated public static final String WIFI_STATIC_NETMASK
WifiManager
insteadExample: "255.255.255.0"
@Deprecated public static final String WIFI_STATIC_DNS1
WifiManager
insteadExample: "192.168.1.1"
@Deprecated public static final String WIFI_STATIC_DNS2
WifiManager
insteadExample: "192.168.1.2"
public static final String BLUETOOTH_DISCOVERABILITY
Type: INT
2 -- discoverable and connectable 1 -- connectable but not discoverable 0 -- neither connectable nor discoverablepublic static final String BLUETOOTH_DISCOVERABILITY_TIMEOUT
@Deprecated public static final String LOCK_PATTERN_ENABLED
Settings.Secure.LOCK_PATTERN_ENABLED
instead@Deprecated public static final String LOCK_PATTERN_VISIBLE
Settings.Secure.LOCK_PATTERN_VISIBLE
instead@Deprecated public static final String LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
Settings.Secure.LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
insteadpublic static final String NEXT_ALARM_FORMATTED
public static final String FONT_SCALE
@Deprecated public static final String DEBUG_APP
Settings.Global.DEBUG_APP
instead@Deprecated public static final String WAIT_FOR_DEBUGGER
Settings.Global.WAIT_FOR_DEBUGGER
instead@Deprecated public static final String DIM_SCREEN
public static final String SCREEN_OFF_TIMEOUT
public static final String SCREEN_BRIGHTNESS
public static final String SCREEN_BRIGHTNESS_MODE
public static final String SCREEN_AUTO_BRIGHTNESS_ADJ
public static final int SCREEN_BRIGHTNESS_MODE_MANUAL
public static final int SCREEN_BRIGHTNESS_MODE_AUTOMATIC
@Deprecated public static final String SHOW_PROCESSES
Settings.Global.SHOW_PROCESSES
instead@Deprecated public static final String ALWAYS_FINISH_ACTIVITIES
Settings.Global.ALWAYS_FINISH_ACTIVITIES
insteadpublic static final String MODE_RINGER_STREAMS_AFFECTED
public static final String MUTE_STREAMS_AFFECTED
public static final String VIBRATE_ON
public static final String VIBRATE_INPUT_DEVICES
public static final String VOLUME_RING
public static final String VOLUME_SYSTEM
public static final String VOLUME_VOICE
public static final String VOLUME_MUSIC
public static final String VOLUME_ALARM
public static final String VOLUME_NOTIFICATION
public static final String VOLUME_BLUETOOTH_SCO
public static final String VOLUME_MASTER
public static final String VOLUME_MASTER_MUTE
@Deprecated public static final String NOTIFICATIONS_USE_RING_VOLUME
Note: This is a one-off setting that will be removed in the future when there is profile support. For this reason, it is kept hidden from the public APIs.
public static final String VIBRATE_IN_SILENT
public static final String[] VOLUME_SETTINGS
public static final String APPEND_FOR_LAST_AUDIBLE
public static final String RINGTONE
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.
DEFAULT_RINGTONE_URI
,
Constant Field Valuespublic static final Uri DEFAULT_RINGTONE_URI
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.
public static final String NOTIFICATION_SOUND
public static final Uri DEFAULT_NOTIFICATION_URI
Uri
that will point to the current default notification
sound at any given time.DEFAULT_RINGTONE_URI
public static final String ALARM_ALERT
RINGTONE
,
DEFAULT_ALARM_ALERT_URI
,
Constant Field Valuespublic static final Uri DEFAULT_ALARM_ALERT_URI
Uri
that will point to the current default alarm alert at
any given time.DEFAULT_ALARM_ALERT_URI
public static final String MEDIA_BUTTON_RECEIVER
public static final String TEXT_AUTO_REPLACE
public static final String TEXT_AUTO_CAPS
public static final String TEXT_AUTO_PUNCTUATE
public static final String TEXT_SHOW_PASSWORD
public static final String SHOW_GTALK_SERVICE_STATUS
@Deprecated public static final String WALLPAPER_ACTIVITY
WallpaperManager
instead.@Deprecated public static final String AUTO_TIME
Settings.Global.AUTO_TIME
instead@Deprecated public static final String AUTO_TIME_ZONE
Settings.Global.AUTO_TIME_ZONE
insteadpublic static final String TIME_12_24
public static final String DATE_FORMAT
public static final String SETUP_WIZARD_HAS_RUN
@Deprecated public static final String WINDOW_ANIMATION_SCALE
Settings.Global.WINDOW_ANIMATION_SCALE
instead@Deprecated public static final String TRANSITION_ANIMATION_SCALE
Settings.Global.TRANSITION_ANIMATION_SCALE
instead@Deprecated public static final String ANIMATOR_DURATION_SCALE
Settings.Global.ANIMATOR_DURATION_SCALE
insteadpublic static final String ACCELEROMETER_ROTATION
public static final String USER_ROTATION
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
.Display#getRotation
,
Constant Field Valuespublic static final String HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY
public static final String VIBRATE_WHEN_RINGING
public static final String DTMF_TONE_WHEN_DIALING
public static final String DTMF_TONE_TYPE_WHEN_DIALING
public static final String HEARING_AID
public static final String TTY_MODE
public static final String SOUND_EFFECTS_ENABLED
public static final String HAPTIC_FEEDBACK_ENABLED
@Deprecated public static final String SHOW_WEB_SUGGESTIONS
public static final String NOTIFICATION_LIGHT_PULSE
public static final String POINTER_LOCATION
public static final String SHOW_TOUCHES
public static final String WINDOW_ORIENTATION_LISTENER_LOG
WindowOrientationListener
for use with the
orientationplot.py tool.
0 = no
1 = yes@Deprecated public static final String POWER_SOUNDS_ENABLED
Settings.Global.POWER_SOUNDS_ENABLED
instead@Deprecated public static final String DOCK_SOUNDS_ENABLED
Settings.Global.DOCK_SOUNDS_ENABLED
insteadpublic static final String LOCKSCREEN_SOUNDS_ENABLED
public static final String LOCKSCREEN_DISABLED
@Deprecated public static final String LOW_BATTERY_SOUND
Settings.Global.LOW_BATTERY_SOUND
instead@Deprecated public static final String DESK_DOCK_SOUND
Settings.Global.DESK_DOCK_SOUND
instead@Deprecated public static final String DESK_UNDOCK_SOUND
Settings.Global.DESK_UNDOCK_SOUND
instead@Deprecated public static final String CAR_DOCK_SOUND
Settings.Global.CAR_DOCK_SOUND
instead@Deprecated public static final String CAR_UNDOCK_SOUND
Settings.Global.CAR_UNDOCK_SOUND
instead@Deprecated public static final String LOCK_SOUND
Settings.Global.LOCK_SOUND
instead@Deprecated public static final String UNLOCK_SOUND
Settings.Global.UNLOCK_SOUND
insteadpublic static final String SIP_RECEIVE_CALLS
public static final String SIP_CALL_OPTIONS
public static final String SIP_ALWAYS
public static final String SIP_ADDRESS_ONLY
public static final String SIP_ASK_ME_EACH_TIME
public static final String POINTER_SPEED
public static final String[] SETTINGS_TO_BACKUP
@Deprecated public static final String ADB_ENABLED
Settings.Global.ADB_ENABLED
instead@Deprecated public static final String ANDROID_ID
Settings.Secure.ANDROID_ID
instead@Deprecated public static final String BLUETOOTH_ON
Settings.Global.BLUETOOTH_ON
instead@Deprecated public static final String DATA_ROAMING
Settings.Global.DATA_ROAMING
instead@Deprecated public static final String DEVICE_PROVISIONED
Settings.Global.DEVICE_PROVISIONED
instead@Deprecated public static final String HTTP_PROXY
Settings.Global.HTTP_PROXY
instead@Deprecated public static final String INSTALL_NON_MARKET_APPS
Settings.Global.INSTALL_NON_MARKET_APPS
instead@Deprecated public static final String LOCATION_PROVIDERS_ALLOWED
Settings.Secure.LOCATION_PROVIDERS_ALLOWED
instead@Deprecated public static final String LOGGING_ID
Settings.Secure.LOGGING_ID
instead@Deprecated public static final String NETWORK_PREFERENCE
Settings.Global.NETWORK_PREFERENCE
instead@Deprecated public static final String PARENTAL_CONTROL_ENABLED
Settings.Secure.PARENTAL_CONTROL_ENABLED
instead@Deprecated public static final String PARENTAL_CONTROL_LAST_UPDATE
Settings.Secure.PARENTAL_CONTROL_LAST_UPDATE
instead@Deprecated public static final String PARENTAL_CONTROL_REDIRECT_URL
Settings.Secure.PARENTAL_CONTROL_REDIRECT_URL
instead@Deprecated public static final String SETTINGS_CLASSNAME
Settings.Secure.SETTINGS_CLASSNAME
instead@Deprecated public static final String USB_MASS_STORAGE_ENABLED
Settings.Global.USB_MASS_STORAGE_ENABLED
instead@Deprecated public static final String USE_GOOGLE_MAIL
Settings.Global.USE_GOOGLE_MAIL
instead@Deprecated public static final String WIFI_MAX_DHCP_RETRY_COUNT
Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT
instead@Deprecated public static final String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
instead@Deprecated public static final String WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
instead@Deprecated public static final String WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
Settings.Global.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
instead@Deprecated public static final String WIFI_NUM_OPEN_NETWORKS_KEPT
Settings.Global.WIFI_NUM_OPEN_NETWORKS_KEPT
instead@Deprecated public static final String WIFI_ON
Settings.Global.WIFI_ON
instead@Deprecated public static final String WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
Settings.Secure.WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
instead@Deprecated public static final String WIFI_WATCHDOG_AP_COUNT
Settings.Secure.WIFI_WATCHDOG_AP_COUNT
instead@Deprecated public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
instead@Deprecated public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
instead@Deprecated public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
instead@Deprecated public static final String WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
Settings.Secure.WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
instead@Deprecated public static final String WIFI_WATCHDOG_MAX_AP_CHECKS
Settings.Secure.WIFI_WATCHDOG_MAX_AP_CHECKS
instead@Deprecated public static final String WIFI_WATCHDOG_ON
Settings.Global.WIFI_WATCHDOG_ON
instead@Deprecated public static final String WIFI_WATCHDOG_PING_COUNT
Settings.Secure.WIFI_WATCHDOG_PING_COUNT
instead@Deprecated public static final String WIFI_WATCHDOG_PING_DELAY_MS
Settings.Secure.WIFI_WATCHDOG_PING_DELAY_MS
instead@Deprecated public static final String WIFI_WATCHDOG_PING_TIMEOUT_MS
Settings.Secure.WIFI_WATCHDOG_PING_TIMEOUT_MS
insteadpublic static String getString(ContentResolver resolver, String name)
resolver
- to access the database withname
- to look up in the tablepublic static String getStringForUser(ContentResolver resolver, String name, int userHandle)
public static boolean putString(ContentResolver resolver, String name, String value)
resolver
- to access the database withname
- to storevalue
- to associate with the namepublic static boolean putStringForUser(ContentResolver resolver, String name, String value, int userHandle)
public static Uri getUriFor(String name)
name
- to look up in the tablepublic static int getInt(ContentResolver cr, String name, int def)
cr
- The ContentResolver to access.name
- The name of the setting to retrieve.def
- Value to return if the setting is not defined.public static int getIntForUser(ContentResolver cr, String name, int def, int userHandle)
public static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException
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.public static int getIntForUser(ContentResolver cr, String name, int userHandle) throws Settings.SettingNotFoundException
public static boolean putInt(ContentResolver cr, String name, int value)
cr
- The ContentResolver to access.name
- The name of the setting to modify.value
- The new value for the setting.public static boolean putIntForUser(ContentResolver cr, String name, int value, int userHandle)
public static long getLong(ContentResolver cr, String name, long def)
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
.public static long getLongForUser(ContentResolver cr, String name, long def, int userHandle)
public static long getLong(ContentResolver cr, String name) throws Settings.SettingNotFoundException
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.public static long getLongForUser(ContentResolver cr, String name, int userHandle) throws Settings.SettingNotFoundException
public static boolean putLong(ContentResolver cr, String name, long value)
cr
- The ContentResolver to access.name
- The name of the setting to modify.value
- The new value for the setting.public static boolean putLongForUser(ContentResolver cr, String name, long value, int userHandle)
public static float getFloat(ContentResolver cr, String name, float def)
cr
- The ContentResolver to access.name
- The name of the setting to retrieve.def
- Value to return if the setting is not defined.public static float getFloatForUser(ContentResolver cr, String name, float def, int userHandle)
public static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException
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.public static float getFloatForUser(ContentResolver cr, String name, int userHandle) throws Settings.SettingNotFoundException
public static boolean putFloat(ContentResolver cr, String name, float value)
cr
- The ContentResolver to access.name
- The name of the setting to modify.value
- The new value for the setting.public static boolean putFloatForUser(ContentResolver cr, String name, float value, int userHandle)
public static void getConfiguration(ContentResolver cr, Configuration outConfig)
Configuration
object.cr
- The ContentResolver to access.outConfig
- Where to place the configuration settings.public static void getConfigurationForUser(ContentResolver cr, Configuration outConfig, int userHandle)
public static void clearConfiguration(Configuration inoutConfig)
public static boolean putConfiguration(ContentResolver cr, Configuration config)
Configuration
object.cr
- The ContentResolver to access.config
- The settings to write.public static boolean putConfigurationForUser(ContentResolver cr, Configuration config, int userHandle)
public static boolean hasInterestingConfigurationChanges(int changes)
@Deprecated public static boolean getShowGTalkServiceStatus(ContentResolver cr)
public static boolean getShowGTalkServiceStatusForUser(ContentResolver cr, int userHandle)
@Deprecated public static void setShowGTalkServiceStatus(ContentResolver cr, boolean flag)
@Deprecated public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean flag, int userHandle)