| java.lang.Object | ||
| android.provider.Settings.System | BaseColumns | |
System settings, containing miscellaneous system preferences. This table holds simple name/value pairs. There are convenience functions for accessing individual settings entries.
| Value | ||||
|---|---|---|---|---|
| String | ALWAYS_FINISH_ACTIVITIES | If 1, the activity manager will aggressively finish activities and processes as soon as they are no longer needed. | "always_finish_activities" | |
| String | BLUETOOTH_DISCOVERABILITY | Determines whether remote devices may discover and/or connect to this device. | "bluetooth_discoverability" | |
| String | BLUETOOTH_DISCOVERABILITY_TIMEOUT | Bluetooth discoverability timeout. | "bluetooth_discoverability_timeout" | |
| String | BLUETOOTH_DUN_ON | "bluetooth_dun_on" | ||
| String | BLUETOOTH_HFAG_ON | "bluetooth_hfag_on" | ||
| String | BLUETOOTH_HSAG_ON | "bluetooth_hsag_on" | ||
| String | BLUETOOTH_NAME | The user-friendly name of this device. | "bluetooth_name" | |
| String | BLUETOOTH_ON | Whether bluetooth and the various services are enabled/disabled 0=disabled. | "bluetooth_on" | |
| String | BLUETOOTH_SHELL_ON | "bluetooth_shell_on" | ||
| Uri | CONTENT_URI | The content:// style URL for this table | ||
| String | DATE_FORMAT | Date format string mm/dd/yyyy dd/mm/yyyy yyyy/mm/dd | "date_format" | |
| String | DEBUG_APP | Name of an application package to be debugged. | "debug_app" | |
| String | DIM_SCREEN | Whether or not to dim the screen. | "dim_screen" | |
| String | FONT_SCALE | Scaling factor for fonts, float. | "font_scale" | |
| String | HTTP_PROXY | Host name and port for a user-selected proxy. | "http_proxy" | |
| String | KEYGUARD | Whether we use keyguard. | "keyguard" | |
| String | KEYGUARD_PASSWORD | The keyguard password, base64 (just so it's not quite cleartext) | "keyguard_password" | |
| String | MUSIC_VOLUME | Music volume | "music_volume" | |
| String | NAME | The unique name of the settings value. | "name" | |
| String | RINGER_ALWAYS_VIBRATE | Always vibrate. | "ringer_always_vibrate" | |
| String | RINGER_INCREASING_RING | Increasing Ring | "ringer_increasing_ring" | |
| String | RINGER_VOLUME | Ringer volume | "ringer_volume" | |
| String | SCREEN_OFF_TIMEOUT | The timeout before the screen turns off. | "screen_off_timeout" | |
| String | SETTINGS_CLASSNAME | Settings classname to launch when Settings is clicked from All Applications. | "settings_classname" | |
| String | SETUP_WIZARD_HAS_RUN | Whether the setup wizard has been run before (on first boot), or if it still needs to be run. | "setup_wizard_has_run" | |
| String | SHOW_GTALK_SERVICE_STATUS | "SHOW_GTALK_SERVICE_STATUS" | ||
| String | SHOW_PROCESSES | Control whether the process CPU usage meter should be shown. | "show_processes" | |
| String | STAY_ON_WHILE_PLUGGED_IN | Whether we keep the device on while the device is plugged in. | "stay_on_while_plugged_in" | |
| String | TIME_12_24 | Display times as 12 or 24 hours 12 24 | "time_12_24" | |
| String | USB_MASS_STORAGE_ENABLED | USB Mass Storage Enabled | "usb_mass_storage_enabled" | |
| String | VALUE | The contents of the setting value
Type: TEXT |
"value" | |
| String | VOICE_VOLUME | Voice volume | "voice_volume" | |
| String | WAIT_FOR_DEBUGGER | If 1, when launching DEBUG_APP it will wait for the debugger before starting user code. | "wait_for_debugger" | |
| String | WALLPAPER_ACTIVITY | Name of activity to use for wallpaper on the home screen. | "wallpaper_activity" | |
Constants inherited
from interface
android.provider.BaseColumns
| Settings.System() |
| final | static | void | getConfiguration(ContentResolver cr, Configuration outConfig) | ||
| Convenience function to read all of the current configuration-related settings into a Resources.Configuration object. | |||||
| final | static | float | getFloat(ContentResolver cr, String name, float def) | ||
| Convenience function for retrieving a single system settings value as a floating point number. | |||||
| final | static | int | getInt(ContentResolver cr, String name) | ||
| Convenience function for retrieving a single system settings value as an integer. | |||||
| final | static | int | getInt(ContentResolver cr, String name, int def) | ||
| Convenience function for retrieving a single system settings value as an integer. | |||||
| static | boolean | getShowGTalkServiceStatus(ContentResolver cr) | |||
| final | static | String | getString(ContentResolver cr, String name) | ||
| Convenience function for retrieving a single system settings value. | |||||
| static | Uri | getUriFor(ContentResolver cr, String name) | |||
| final | static | void | putConfiguration(ContentResolver cr, Configuration config) | ||
| Convenience function to write a batch of configuration-related settings from a Resources.Configuration object. | |||||
| final | static | void | putFloat(ContentResolver cr, String name, float value) | ||
| Convenience function for updating a single settings value as a floating point number. | |||||
| final | static | void | putInt(ContentResolver cr, String name, int value) | ||
| Convenience function for updating a single settings value as an integer. | |||||
| final | static | void | putString(ContentResolver cr, String name, String value) | ||
| Convenience function for updating a single settings value. | |||||
| static | void | setShowGTalkServiceStatus(ContentResolver cr, boolean flag) | |||
Methods inherited
from class
java.lang.Object
Type: INT
2 -- discoverable and connectable 1 -- connectable but not discoverable 0 -- neither connectable nor discoverableType: STRING
Type: TEXT
Type: TEXT
| cr | The ContentResolver to access. |
|---|---|
| outConfig | Where to place the configuration settings. |
| cr | The ContentResolver to access. |
|---|---|
| name | The name of the setting to retrieve. |
| def | Value to return if the setting is not defined. |
This version does not take a default value. If the setting has not been set, it returns the system default value.
| 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. |
|---|
| cr | The ContentResolver to access. |
|---|---|
| name | The name of the setting to retrieve. |
| def | Value to return if the setting is not defined. |
| cr | The ContentResolver to access. |
|---|---|
| name | The name of the setting to retrieve. |
| cr | The ContentResolver to access. |
|---|---|
| config | The settings to write. |
| cr | The ContentResolver to access. |
|---|---|
| name | The name of the setting to modify. |
| value | The new value for the setting. |
| cr | The ContentResolver to access. |
|---|---|
| name | The name of the setting to modify. |
| value | The new value for the setting. |
| cr | The ContentResolver to access. |
|---|---|
| name | The name of the setting to modify. |
| value | The new value for the setting. |