|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.provider.Settings.NameValueTable
android.provider.Settings.System
public static final class Settings.System
System settings, containing miscellaneous system preferences. This table holds simple name/value pairs. There are convenience functions for accessing individual settings entries.
| Field Summary | |
|---|---|
static String |
ADB_ENABLED
Whether ADB is enabled. |
static String |
AIRPLANE_MODE_ON
Whether Airplane Mode is on. |
static String |
AIRPLANE_MODE_RADIOS
A comma separated list of radios that need to be disabled when airplane mode is on. |
static String |
ALWAYS_FINISH_ACTIVITIES
If 1, the activity manager will aggressively finish activities and processes as soon as they are no longer needed. |
static String |
ANDROID_ID
The Android ID (a unique 64-bit value) as a hex string. |
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
Value to specify if the user prefers the date, time and time zone to be automatically fetched from the network (NITZ). |
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
Whether bluetooth is enabled/disabled 0=disabled. |
static Uri |
CONTENT_URI
The content:// style URL for this table |
static String |
DATA_ROAMING
Whether or not data roaming is enabled. |
static String |
DATE_FORMAT
Date format string mm/dd/yyyy dd/mm/yyyy yyyy/mm/dd |
static String |
DEBUG_APP
Name of an application package to be debugged. |
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 |
DEVICE_PROVISIONED
Whether the device has been provisioned (0 = false, 1 = true) |
static String |
DIM_SCREEN
Whether or not to dim the screen. |
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 String |
FONT_SCALE
Scaling factor for fonts, float. |
static String |
HTTP_PROXY
Host name and port for a user-selected proxy. |
static String |
INSTALL_NON_MARKET_APPS
Whether the package installer should allow installation of apps downloaded from sources other than the Android Market (vending machine). |
static String |
LOCATION_PROVIDERS_ALLOWED
Comma-separated list of location providers that activities may access. |
static String |
LOCK_PATTERN_ENABLED
Whether autolock is enabled (0 = false, 1 = true) |
static String |
LOCK_PATTERN_VISIBLE
Whether lock pattern is visible as user enters (0 = false, 1 = true) |
static String |
LOGGING_ID
The Logging ID (a unique 64-bit value) as a hex string. |
static String |
MODE_RINGER
Ringer mode. |
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
User preference for which network(s) should be used. |
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_SOUND
Persistent store for the system-wide default notification sound. |
static String |
PARENTAL_CONTROL_ENABLED
|
static String |
PARENTAL_CONTROL_LAST_UPDATE
|
static String |
PARENTAL_CONTROL_REDIRECT_URL
|
static String |
RADIO_BLUETOOTH
Constant for use in AIRPLANE_MODE_RADIOS to specify Bluetooth radio. |
static String |
RADIO_CELL
Constant for use in AIRPLANE_MODE_RADIOS to specify Cellular radio. |
static String |
RADIO_WIFI
Constant for use in AIRPLANE_MODE_RADIOS to specify Wi-Fi radio. |
static String |
RINGTONE
Persistent store for the system-wide default ringtone URI. |
static String |
SCREEN_BRIGHTNESS
The screen backlight brightness between 0 and 255. |
static String |
SCREEN_OFF_TIMEOUT
The timeout before the screen turns off. |
static String |
SETTINGS_CLASSNAME
Settings classname to launch when Settings is clicked from All Applications. |
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
Control whether the process CPU usage meter should be shown. |
static String |
SOUND_EFFECTS_ENABLED
Whether the sounds effects (key clicks, lid open ...) are enabled. |
static String |
STAY_ON_WHILE_PLUGGED_IN
Whether we keep the device on while the device is plugged in. |
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
Scaling factor for activity transition animations. |
static String |
USB_MASS_STORAGE_ENABLED
USB Mass Storage Enabled |
static String |
USE_GOOGLE_MAIL
If this setting is set (to anything), then all references to Gmail on the device must change to Google Mail. |
static String |
VIBRATE_ON
Whether vibrate is on for different events. |
static String |
VOLUME_ALARM
Alarm volume. |
static String |
VOLUME_MUSIC
Music/media/gaming 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
If 1, when launching DEBUG_APP it will wait for the debugger before starting user code. |
static String |
WALLPAPER_ACTIVITY
Name of activity to use for wallpaper on the home screen. |
static String |
WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
Whether to notify the user of open networks. |
static String |
WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
Delay (in seconds) before repeating the Wi-Fi networks available notification. |
static String |
WIFI_NUM_OPEN_NETWORKS_KEPT
When the number of open networks exceeds this number, the least-recently-used excess networks will be removed. |
static String |
WIFI_ON
Whether the Wi-Fi should be on. |
static String |
WIFI_STATIC_DNS1
If using static IP, the primary DNS's IP address. |
static String |
WIFI_STATIC_DNS2
If using static IP, the secondary DNS's IP address. |
static String |
WIFI_STATIC_GATEWAY
If using static IP, the gateway's IP address. |
static String |
WIFI_STATIC_IP
The static IP address. |
static String |
WIFI_STATIC_NETMASK
If using static IP, the net mask. |
static String |
WIFI_USE_STATIC_IP
Whether to use static IP and other static network attributes. |
static String |
WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
The acceptable packet loss percentage (range 0 - 100) before trying another AP on the same network. |
static String |
WIFI_WATCHDOG_AP_COUNT
The number of access points required for a network in order for the watchdog to monitor it. |
static String |
WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
The delay between background checks. |
static String |
WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
Whether the Wi-Fi watchdog is enabled for background checking even after it thinks the user has connected to a good access point. |
static String |
WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
The timeout for a background ping |
static String |
WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
The number of initial pings to perform that *may* be ignored if they fail. |
static String |
WIFI_WATCHDOG_MAX_AP_CHECKS
The maximum number of access points (per network) to attempt to test. |
static String |
WIFI_WATCHDOG_ON
Whether the Wi-Fi watchdog is enabled. |
static String |
WIFI_WATCHDOG_PING_COUNT
The number of pings to test if an access point is a good connection. |
static String |
WIFI_WATCHDOG_PING_DELAY_MS
The delay between pings. |
static String |
WIFI_WATCHDOG_PING_TIMEOUT_MS
The timeout per ping. |
static String |
WINDOW_ANIMATION_SCALE
Scaling factor for normal window animations. |
| Fields inherited from class android.provider.Settings.NameValueTable |
|---|
NAME, VALUE |
| Fields inherited from interface android.provider.BaseColumns |
|---|
_COUNT, _ID |
| Constructor Summary | |
|---|---|
Settings.System()
|
|
| Method Summary | |
|---|---|
static void |
getConfiguration(ContentResolver cr,
Configuration outConfig)
Convenience function to read all of the current configuration-related settings into a Configuration object. |
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 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 boolean |
getShowGTalkServiceStatus(ContentResolver cr)
|
static String |
getString(ContentResolver resolver,
String name)
Look up a name in the database. |
static Uri |
getUriFor(String name)
Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver. |
static boolean |
putConfiguration(ContentResolver cr,
Configuration config)
Convenience function to write a batch of configuration-related settings from a Configuration object. |
static boolean |
putFloat(ContentResolver cr,
String name,
float value)
Convenience function for updating a single settings value as a floating point number. |
static boolean |
putInt(ContentResolver cr,
String name,
int value)
Convenience function for updating a single settings value as an integer. |
static boolean |
putString(ContentResolver resolver,
String name,
String value)
Store a name/value pair into the database. |
static void |
setShowGTalkServiceStatus(ContentResolver cr,
boolean flag)
|
| Methods inherited from class android.provider.Settings.NameValueTable |
|---|
getUriFor, putString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SYS_PROP_SETTING_VERSION
public static final Uri CONTENT_URI
public static final String STAY_ON_WHILE_PLUGGED_IN
public static final String END_BUTTON_BEHAVIOR
public static final String AIRPLANE_MODE_ON
public static final String RADIO_BLUETOOTH
public static final String RADIO_WIFI
public static final String RADIO_CELL
public static final String AIRPLANE_MODE_RADIOS
public static final String WIFI_ON
public static final String WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
If not connected and the scan results have an open network, we will
put this notification up. If we attempt to connect to a network or
the open network(s) disappear, we remove the notification. When we
show the notification, we will not show it again for
WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY time.
public static final String WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
public static final String WIFI_NUM_OPEN_NETWORKS_KEPT
public static final String WIFI_WATCHDOG_ON
public static final String WIFI_WATCHDOG_AP_COUNT
public static final String WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
public static final String WIFI_WATCHDOG_PING_COUNT
public static final String WIFI_WATCHDOG_PING_TIMEOUT_MS
public static final String WIFI_WATCHDOG_PING_DELAY_MS
public static final String WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
public static final String WIFI_WATCHDOG_MAX_AP_CHECKS
public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
public static final String WIFI_USE_STATIC_IP
Set to 1 for true and 0 for false.
public static final String WIFI_STATIC_IP
Example: "192.168.1.51"
public static final String WIFI_STATIC_GATEWAY
Example: "192.168.1.1"
public static final String WIFI_STATIC_NETMASK
Example: "255.255.255.0"
public static final String WIFI_STATIC_DNS1
Example: "192.168.1.1"
public static final String WIFI_STATIC_DNS2
Example: "192.168.1.2"
public static final String NETWORK_PREFERENCE
public static final String BLUETOOTH_ON
public static final String BLUETOOTH_DISCOVERABILITY
Type: INT
2 -- discoverable and connectable 1 -- connectable but not discoverable 0 -- neither connectable nor discoverable
public static final String BLUETOOTH_DISCOVERABILITY_TIMEOUT
public static final String LOCK_PATTERN_ENABLED
public static final String DEVICE_PROVISIONED
public static final String LOCK_PATTERN_VISIBLE
public static final String NEXT_ALARM_FORMATTED
public static final String LOCATION_PROVIDERS_ALLOWED
public static final String DATA_ROAMING
public static final String FONT_SCALE
public static final String DEBUG_APP
public static final String WAIT_FOR_DEBUGGER
public static final String DIM_SCREEN
public static final String SCREEN_OFF_TIMEOUT
public static final String SCREEN_BRIGHTNESS
public static final String SHOW_PROCESSES
public static final String ALWAYS_FINISH_ACTIVITIES
public static final String MODE_RINGER
public static final String MODE_RINGER_STREAMS_AFFECTED
public static final String MUTE_STREAMS_AFFECTED
public static final String VIBRATE_ON
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_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
RINGTONE,
DEFAULT_NOTIFICATION_URI,
Constant Field Valuespublic static final Uri DEFAULT_NOTIFICATION_URI
Uri that will point to the current default notification
sound at any given time.
DEFAULT_RINGTONE_URIpublic 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 USB_MASS_STORAGE_ENABLED
public static final String SHOW_GTALK_SERVICE_STATUS
public static final String WALLPAPER_ACTIVITY
public static final String HTTP_PROXY
public static final String AUTO_TIME
public static final String TIME_12_24
public static final String DATE_FORMAT
public static final String SETTINGS_CLASSNAME
public static final String SETUP_WIZARD_HAS_RUN
public static final String ANDROID_ID
public static final String LOGGING_ID
public static final String USE_GOOGLE_MAIL
public static final String INSTALL_NON_MARKET_APPS
public static final String WINDOW_ANIMATION_SCALE
public static final String TRANSITION_ANIMATION_SCALE
public static final String PARENTAL_CONTROL_ENABLED
public static final String PARENTAL_CONTROL_REDIRECT_URL
public static final String PARENTAL_CONTROL_LAST_UPDATE
public static final String ADB_ENABLED
public static final String DTMF_TONE_WHEN_DIALING
public static final String SOUND_EFFECTS_ENABLED
| Constructor Detail |
|---|
public Settings.System()
| Method Detail |
|---|
public static String getString(ContentResolver resolver,
String name)
resolver - to access the database withname - to look up in the table
public static boolean putString(ContentResolver resolver,
String name,
String value)
resolver - to access the database withname - to storevalue - to associate with the name
public static Uri getUriFor(String name)
name - to look up in the table
public 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 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 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 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 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 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 void getConfiguration(ContentResolver cr,
Configuration outConfig)
Configuration object.
cr - The ContentResolver to access.outConfig - Where to place the configuration settings.
public static boolean putConfiguration(ContentResolver cr,
Configuration config)
Configuration object.
cr - The ContentResolver to access.config - The settings to write.
public static boolean getShowGTalkServiceStatus(ContentResolver cr)
public static void setShowGTalkServiceStatus(ContentResolver cr,
boolean flag)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||