IT. Expert System.

Android Reference

Settings.Global


android.provider

Class Settings.Global

  • All Implemented Interfaces:
    BaseColumns
    Enclosing class:
    Settings


    public static final class Settings.Global
    extends Settings.NameValueTable
    Global system settings, containing preferences that always apply identically to all defined users. Applications can read these but are not allowed to write; like the "Secure" settings, these are for preferences that the user must explicitly modify through the system UI or specialized APIs for those values.
    • Field Detail

      • CONTENT_URI

        public static final Uri CONTENT_URI
        The content:// style URL for global secure settings items. Not public.
      • ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED

        public static final String ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED
        Setting whether the global gesture for enabling accessibility is enabled. If this gesture is enabled the user will be able to perfrom it to enable the accessibility state without visiting the settings app.
        See Also:
        Constant Field Values
      • RADIO_BLUETOOTH

        public static final String RADIO_BLUETOOTH
        Constant for use in AIRPLANE_MODE_RADIOS to specify Bluetooth radio.
        See Also:
        Constant Field Values
      • RADIO_WIFI

        public static final String RADIO_WIFI
        Constant for use in AIRPLANE_MODE_RADIOS to specify Wi-Fi radio.
        See Also:
        Constant Field Values
      • RADIO_CELL

        public static final String RADIO_CELL
        Constant for use in AIRPLANE_MODE_RADIOS to specify Cellular radio.
        See Also:
        Constant Field Values
      • RADIO_NFC

        public static final String RADIO_NFC
        Constant for use in AIRPLANE_MODE_RADIOS to specify NFC radio.
        See Also:
        Constant Field Values
      • AIRPLANE_MODE_RADIOS

        public static final String AIRPLANE_MODE_RADIOS
        A comma separated list of radios that need to be disabled when airplane mode is on. This overrides WIFI_ON and BLUETOOTH_ON, if Wi-Fi and bluetooth are included in the comma separated list.
        See Also:
        Constant Field Values
      • AIRPLANE_MODE_TOGGLEABLE_RADIOS

        public static final String AIRPLANE_MODE_TOGGLEABLE_RADIOS
        A comma separated list of radios that should to be disabled when airplane mode is on, but can be manually reenabled by the user. For example, if RADIO_WIFI is added to both AIRPLANE_MODE_RADIOS and AIRPLANE_MODE_TOGGLEABLE_RADIOS, then Wifi will be turned off when entering airplane mode, but the user will be able to reenable Wifi in the Settings app.
        See Also:
        Constant Field Values
      • WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED

        public static final int WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED
        Value for WIFI_SLEEP_POLICY to use the default policy when the device is on battery, and never go to sleep when the device is plugged in.
        See Also:
        Constant Field Values
      • AUTO_TIME

        public static final String AUTO_TIME
        Value to specify if the user prefers the date, time and time zone to be automatically fetched from the network (NITZ). 1=yes, 0=no
        See Also:
        Constant Field Values
      • AUTO_TIME_ZONE

        public static final String AUTO_TIME_ZONE
        Value to specify if the user prefers the time zone to be automatically fetched from the network (NITZ). 1=yes, 0=no
        See Also:
        Constant Field Values
      • DESK_UNDOCK_SOUND

        public static final String DESK_UNDOCK_SOUND
        URI for the desk dock "out" event sound.
        See Also:
        Constant Field Values
      • DOCK_SOUNDS_ENABLED

        public static final String DOCK_SOUNDS_ENABLED
        Whether to play a sound for dock events.
        See Also:
        Constant Field Values
      • POWER_SOUNDS_ENABLED

        public static final String POWER_SOUNDS_ENABLED
        Whether to play a sound for low-battery alerts.
        See Also:
        Constant Field Values
      • ASSISTED_GPS_ENABLED

        public static final String ASSISTED_GPS_ENABLED
        Whether assisted GPS should be enabled or not.
        See Also:
        Constant Field Values
      • BLUETOOTH_ON

        public static final String BLUETOOTH_ON
        Whether bluetooth is enabled/disabled 0=disabled. 1=enabled.
        See Also:
        Constant Field Values
      • CDMA_CELL_BROADCAST_SMS

        public static final String CDMA_CELL_BROADCAST_SMS
        CDMA Cell Broadcast SMS 0 = CDMA Cell Broadcast SMS disabled 1 = CDMA Cell Broadcast SMS enabled
        See Also:
        Constant Field Values
      • CDMA_ROAMING_MODE

        public static final String CDMA_ROAMING_MODE
        The CDMA roaming mode 0 = Home Networks, CDMA default 1 = Roaming on Affiliated networks 2 = Roaming on any networks
        See Also:
        Constant Field Values
      • CDMA_SUBSCRIPTION_MODE

        public static final String CDMA_SUBSCRIPTION_MODE
        The CDMA subscription mode 0 = RUIM/SIM (default) 1 = NV
        See Also:
        Constant Field Values
      • DATA_ACTIVITY_TIMEOUT_MOBILE

        public static final String DATA_ACTIVITY_TIMEOUT_MOBILE
        Inactivity timeout to track mobile data activity. If set to a positive integer, it indicates the inactivity timeout value in seconds to infer the data activity of mobile network. After a period of no activity on mobile networks with length specified by the timeout, an ACTION_DATA_ACTIVITY_CHANGE intent is fired to indicate a transition of network status from "active" to "idle". Any subsequent activity on mobile networks triggers the firing of ACTION_DATA_ACTIVITY_CHANGE intent indicating transition from "idle" to "active". Network activity refers to transmitting or receiving data on the network interfaces. Tracking is disabled if set to zero or negative value.
        See Also:
        Constant Field Values
      • DATA_ACTIVITY_TIMEOUT_WIFI

        public static final String DATA_ACTIVITY_TIMEOUT_WIFI
        Timeout to tracking Wifi data activity. Same as DATA_ACTIVITY_TIMEOUT_MOBILE but for Wifi network.
        See Also:
        Constant Field Values
      • DATA_ROAMING

        public static final String DATA_ROAMING
        Whether or not data roaming is enabled. (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • DEVELOPMENT_SETTINGS_ENABLED

        public static final String DEVELOPMENT_SETTINGS_ENABLED
        Whether user has enabled development settings.
        See Also:
        Constant Field Values
      • DEVICE_PROVISIONED

        public static final String DEVICE_PROVISIONED
        Whether the device has been provisioned (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • DISPLAY_DENSITY_FORCED

        public static final String DISPLAY_DENSITY_FORCED
        The saved value for WindowManagerService.setForcedDisplayDensity(). One integer in dpi. If unset, then use the real display density.
        See Also:
        Constant Field Values
      • DISPLAY_SIZE_FORCED

        public static final String DISPLAY_SIZE_FORCED
        The saved value for WindowManagerService.setForcedDisplaySize(). Two integers separated by a comma. If unset, then use the real display size.
        See Also:
        Constant Field Values
      • DOWNLOAD_MAX_BYTES_OVER_MOBILE

        public static final String DOWNLOAD_MAX_BYTES_OVER_MOBILE
        The maximum size, in bytes, of a download that the download manager will transfer over a non-wifi connection.
        See Also:
        Constant Field Values
      • DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE

        public static final String DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE
        The recommended maximum size, in bytes, of a download that the download manager should transfer over a non-wifi connection. Over this size, the use will be warned, but will have the option to start the download over the mobile connection anyway.
        See Also:
        Constant Field Values
      • INSTALL_NON_MARKET_APPS

        public static final String INSTALL_NON_MARKET_APPS
        Whether the package installer should allow installation of apps downloaded from sources other than Google Play. 1 = allow installing from other sources 0 = only allow installing from Google Play
        See Also:
        Constant Field Values
      • MOBILE_DATA

        public static final String MOBILE_DATA
        Whether mobile data connections are allowed by the user. See ConnectivityManager for more info.
        See Also:
        Constant Field Values
      • NETWORK_PREFERENCE

        public static final String NETWORK_PREFERENCE
        User preference for which network(s) should be used. Only the connectivity service should touch this.
        See Also:
        Constant Field Values
      • NITZ_UPDATE_DIFF

        public static final String NITZ_UPDATE_DIFF
        If the NITZ_UPDATE_DIFF time is exceeded then an automatic adjustment to SystemClock will be allowed even if NITZ_UPDATE_SPACING has not been exceeded.
        See Also:
        Constant Field Values
      • NITZ_UPDATE_SPACING

        public static final String NITZ_UPDATE_SPACING
        The length of time in milli-seconds that automatic small adjustments to SystemClock are ignored if NITZ_UPDATE_DIFF is not exceeded.
        See Also:
        Constant Field Values
      • PACKAGE_VERIFIER_ENABLE

        public static final String PACKAGE_VERIFIER_ENABLE
        Whether the package manager should send package verification broadcasts for verifiers to review apps prior to installation. 1 = request apps to be verified prior to installation, if a verifier exists. 0 = do not verify apps before installation
        See Also:
        Constant Field Values
      • PACKAGE_VERIFIER_TIMEOUT

        public static final String PACKAGE_VERIFIER_TIMEOUT
        Timeout for package verification.
        See Also:
        Constant Field Values
      • PACKAGE_VERIFIER_DEFAULT_RESPONSE

        public static final String PACKAGE_VERIFIER_DEFAULT_RESPONSE
        Default response code for package verification.
        See Also:
        Constant Field Values
      • PACKAGE_VERIFIER_SETTING_VISIBLE

        public static final String PACKAGE_VERIFIER_SETTING_VISIBLE
        Show package verification setting in the Settings app. 1 = show (default) 0 = hide
        See Also:
        Constant Field Values
      • PACKAGE_VERIFIER_INCLUDE_ADB

        public static final String PACKAGE_VERIFIER_INCLUDE_ADB
        Run package verificaiton on apps installed through ADB/ADT/USB 1 = perform package verification on ADB installs (default) 0 = bypass package verification on ADB installs
        See Also:
        Constant Field Values
      • PDP_WATCHDOG_POLL_INTERVAL_MS

        public static final String PDP_WATCHDOG_POLL_INTERVAL_MS
        The interval in milliseconds at which to check packet counts on the mobile data interface when screen is on, to detect possible data connection problems.
        See Also:
        Constant Field Values
      • PDP_WATCHDOG_LONG_POLL_INTERVAL_MS

        public static final String PDP_WATCHDOG_LONG_POLL_INTERVAL_MS
        The interval in milliseconds at which to check packet counts on the mobile data interface when screen is off, to detect possible data connection problems.
        See Also:
        Constant Field Values
      • PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS

        public static final String PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS
        The interval in milliseconds at which to check packet counts on the mobile data interface after PDP_WATCHDOG_TRIGGER_PACKET_COUNT outgoing packets has been reached without incoming packets.
        See Also:
        Constant Field Values
      • PDP_WATCHDOG_TRIGGER_PACKET_COUNT

        public static final String PDP_WATCHDOG_TRIGGER_PACKET_COUNT
        The number of outgoing packets sent without seeing an incoming packet that triggers a countdown (of PDP_WATCHDOG_ERROR_POLL_COUNT device is logged to the event log
        See Also:
        Constant Field Values
      • PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT

        public static final String PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT
        The number of failed PDP reset attempts before moving to something more drastic: re-registering to the network.
        See Also:
        Constant Field Values
      • SAMPLING_PROFILER_MS

        public static final String SAMPLING_PROFILER_MS
        A positive value indicates how often the SamplingProfiler should take snapshots. Zero value means SamplingProfiler is disabled.
        See Also:
        Constant Field Values
      • SETUP_PREPAID_DATA_SERVICE_URL

        public static final String SETUP_PREPAID_DATA_SERVICE_URL
        URL to open browser on to allow user to manage a prepay account
        See Also:
        Constant Field Values
      • SETUP_PREPAID_DETECTION_TARGET_URL

        public static final String SETUP_PREPAID_DETECTION_TARGET_URL
        URL to attempt a GET on to see if this is a prepay device
        See Also:
        Constant Field Values
      • SETUP_PREPAID_DETECTION_REDIR_HOST

        public static final String SETUP_PREPAID_DETECTION_REDIR_HOST
        Host to check for a redirect to after an attempt to GET SETUP_PREPAID_DETECTION_TARGET_URL. (If we redirected there, this is a prepaid device with zero balance.)
        See Also:
        Constant Field Values
      • SMS_OUTGOING_CHECK_INTERVAL_MS

        public static final String SMS_OUTGOING_CHECK_INTERVAL_MS
        The interval in milliseconds at which to check the number of SMS sent out without asking for use permit, to limit the un-authorized SMS usage.
        See Also:
        Constant Field Values
      • SMS_SHORT_CODE_CONFIRMATION

        public static final String SMS_SHORT_CODE_CONFIRMATION
        Used to disable SMS short code confirmation - defaults to true. True indcates we will do the check, etc. Set to false to disable.
        See Also:
        SmsUsageMonitor, Constant Field Values
      • SMS_SHORT_CODE_RULE

        public static final String SMS_SHORT_CODE_RULE
        Used to select which country we use to determine premium sms codes. One of com.android.internal.telephony.SMSDispatcher.PREMIUM_RULE_USE_SIM, com.android.internal.telephony.SMSDispatcher.PREMIUM_RULE_USE_NETWORK, or com.android.internal.telephony.SMSDispatcher.PREMIUM_RULE_USE_BOTH.
        See Also:
        Constant Field Values
      • TETHER_SUPPORTED

        public static final String TETHER_SUPPORTED
        Used to disable Tethering on a device - defaults to true
        See Also:
        Constant Field Values
      • TETHER_DUN_REQUIRED

        public static final String TETHER_DUN_REQUIRED
        Used to require DUN APN on the device or not - defaults to a build config value which defaults to false
        See Also:
        Constant Field Values
      • TETHER_DUN_APN

        public static final String TETHER_DUN_APN
        Used to hold a gservices-provisioned apn value for DUN. If set, or the corresponding build config values are set it will override the APN DB values. Consists of a comma seperated list of strings: "name,apn,proxy,port,username,password,server,mmsc,mmsproxy,mmsport,mcc,mnc,auth,type" note that empty fields can be ommitted: "name,apn,,,,,,,,,310,260,,DUN"
        See Also:
        Constant Field Values
      • THROTTLE_POLLING_SEC

        public static final String THROTTLE_POLLING_SEC
        The bandwidth throttle polling freqency in seconds
        See Also:
        Constant Field Values
      • THROTTLE_THRESHOLD_BYTES

        public static final String THROTTLE_THRESHOLD_BYTES
        The bandwidth throttle threshold (long)
        See Also:
        Constant Field Values
      • THROTTLE_VALUE_KBITSPS

        public static final String THROTTLE_VALUE_KBITSPS
        The bandwidth throttle value (kbps)
        See Also:
        Constant Field Values
      • THROTTLE_RESET_DAY

        public static final String THROTTLE_RESET_DAY
        The bandwidth throttle reset calendar day (1-28)
        See Also:
        Constant Field Values
      • THROTTLE_NOTIFICATION_TYPE

        public static final String THROTTLE_NOTIFICATION_TYPE
        The throttling notifications we should send
        See Also:
        Constant Field Values
      • THROTTLE_MAX_NTP_CACHE_AGE_SEC

        public static final String THROTTLE_MAX_NTP_CACHE_AGE_SEC
        The length of time in Sec that we allow our notion of NTP time to be cached before we refresh it
        See Also:
        Constant Field Values
      • USE_GOOGLE_MAIL

        public static final String USE_GOOGLE_MAIL
        If this setting is set (to anything), then all references to Gmail on the device must change to Google Mail.
        See Also:
        Constant Field Values
      • WEB_AUTOFILL_QUERY_URL

        public static final String WEB_AUTOFILL_QUERY_URL
        Autofill server address (Used in WebView/browser).
        See Also:
        Constant Field Values
      • WIFI_DISPLAY_ON

        public static final String WIFI_DISPLAY_ON
        Whether Wifi display is enabled/disabled 0=disabled. 1=enabled.
        See Also:
        Constant Field Values
      • WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON

        public static final String WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
        Whether to notify the user of open networks.

        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 Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY time.

        See Also:
        Constant Field Values
      • WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON

        public static final String WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON
        See Also:
        Constant Field Values
      • WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY

        public static final String WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
        Delay (in seconds) before repeating the Wi-Fi networks available notification. Connecting to a network will reset the timer.
        See Also:
        Constant Field Values
      • WIFI_FRAMEWORK_SCAN_INTERVAL_MS

        public static final String WIFI_FRAMEWORK_SCAN_INTERVAL_MS
        The interval in milliseconds to issue wake up scans when wifi needs to connect. This is necessary to connect to an access point when device is on the move and the screen is off.
        See Also:
        Constant Field Values
      • WIFI_IDLE_MS

        public static final String WIFI_IDLE_MS
        The interval in milliseconds after which Wi-Fi is considered idle. When idle, it is possible for the device to be switched from Wi-Fi to the mobile data network.
        See Also:
        Constant Field Values
      • WIFI_NUM_OPEN_NETWORKS_KEPT

        public static final String WIFI_NUM_OPEN_NETWORKS_KEPT
        When the number of open networks exceeds this number, the least-recently-used excess networks will be removed.
        See Also:
        Constant Field Values
      • WIFI_ON

        public static final String WIFI_ON
        Whether the Wi-Fi should be on. Only the Wi-Fi service should touch this.
        See Also:
        Constant Field Values
      • WIFI_SAVED_STATE

        public static final String WIFI_SAVED_STATE
        Used to save the Wifi_ON state prior to tethering. This state will be checked to restore Wifi after the user turns off tethering.
        See Also:
        Constant Field Values
      • WIFI_SUPPLICANT_SCAN_INTERVAL_MS

        public static final String WIFI_SUPPLICANT_SCAN_INTERVAL_MS
        The interval in milliseconds to scan as used by the wifi supplicant
        See Also:
        Constant Field Values
      • WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS

        public static final String WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS
        The interval in milliseconds to scan at supplicant when p2p is connected
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED

        public static final String WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED
        Setting to turn off poor network avoidance on Wi-Fi. Feature is enabled by default and the setting needs to be set to 0 to disable it.
        See Also:
        Constant Field Values
      • WIFI_SUSPEND_OPTIMIZATIONS_ENABLED

        public static final String WIFI_SUSPEND_OPTIMIZATIONS_ENABLED
        Setting to turn on suspend optimizations at screen off on Wi-Fi. Enabled by default and needs to be set to 0 to disable it.
        See Also:
        Constant Field Values
      • WIFI_MAX_DHCP_RETRY_COUNT

        public static final String WIFI_MAX_DHCP_RETRY_COUNT
        The maximum number of times we will retry a connection to an access point for which we have failed in acquiring an IP address from DHCP. A value of N means that we will make N+1 connection attempts in all.
        See Also:
        Constant Field Values
      • WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS

        public static final String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
        Maximum amount of time in milliseconds to hold a wakelock while waiting for mobile data connectivity to be established after a disconnect from Wi-Fi.
        See Also:
        Constant Field Values
      • WIFI_P2P_DEVICE_NAME

        public static final String WIFI_P2P_DEVICE_NAME
        The Wi-Fi peer-to-peer device name
        See Also:
        Constant Field Values
      • DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS

        public static final String DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS
        The number of milliseconds to delay when checking for data stalls during non-aggressive detection. (screen is turned off.)
        See Also:
        Constant Field Values
      • DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS

        public static final String DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS
        The number of milliseconds to delay when checking for data stalls during aggressive detection. (screen on or suspected data stall)
        See Also:
        Constant Field Values
      • GPRS_REGISTER_CHECK_PERIOD_MS

        public static final String GPRS_REGISTER_CHECK_PERIOD_MS
        The interval in milliseconds at which to check gprs registration after the first registration mismatch of gprs and voice service, to detect possible data network registration problems.
        See Also:
        Constant Field Values
      • MODE_RINGER

        public static final String MODE_RINGER
        Ringer mode. This is used internally, changing this value will not change the ringer mode. See AudioManager.
        See Also:
        Constant Field Values
      • OVERLAY_DISPLAY_DEVICES

        public static final String OVERLAY_DISPLAY_DEVICES
        Overlay display devices setting. The associated value is a specially formatted string that describes the size and density of simulated secondary display devices.

        Format: {width}x{height}/{dpi};...

        Example:

        • 1280x720/213: make one overlay that is 1280x720 at 213dpi.
        • 1920x1080/320;1280x720/213: make two overlays, the first at 1080p and the second at 720p.
        • If the value is empty, then no overlay display devices are created.

        See Also:
        Constant Field Values
      • BATTERY_DISCHARGE_DURATION_THRESHOLD

        public static final String BATTERY_DISCHARGE_DURATION_THRESHOLD
        Threshold values for the duration and level of a discharge cycle, under which we log discharge cycle info.
        See Also:
        Constant Field Values
      • SEND_ACTION_APP_ERROR

        public static final String SEND_ACTION_APP_ERROR
        Flag for allowing ActivityManagerService to send ACTION_APP_ERROR intents on application crashes and ANRs. If this is disabled, the crash/ANR dialog will never display the "Report" button.

        Type: int (0 = disallow, 1 = allow)

        See Also:
        Constant Field Values
      • DROPBOX_TAG_PREFIX

        public static final String DROPBOX_TAG_PREFIX
        Prefix for per-tag dropbox disable/enable settings.
        See Also:
        Constant Field Values
      • ERROR_LOGCAT_PREFIX

        public static final String ERROR_LOGCAT_PREFIX
        Lines of logcat to include with system crash/ANR/etc. reports, as a prefix of the dropbox tag of the report type. For example, "logcat_for_system_server_anr" controls the lines of logcat captured with system server ANR reports. 0 to disable.
        See Also:
        Constant Field Values
      • SYS_FREE_STORAGE_LOG_INTERVAL

        public static final String SYS_FREE_STORAGE_LOG_INTERVAL
        The interval in minutes after which the amount of free storage left on the device is logged to the event log
        See Also:
        Constant Field Values
      • DISK_FREE_CHANGE_REPORTING_THRESHOLD

        public static final String DISK_FREE_CHANGE_REPORTING_THRESHOLD
        Threshold for the amount of change in disk free space required to report the amount of free space. Used to prevent spamming the logs when the disk free space isn't changing frequently.
        See Also:
        Constant Field Values
      • SYS_STORAGE_THRESHOLD_PERCENTAGE

        public static final String SYS_STORAGE_THRESHOLD_PERCENTAGE
        Minimum percentage of free storage on the device that is used to determine if the device is running low on storage. The default is 10.

        Say this value is set to 10, the device is considered running low on storage if 90% or more of the device storage is filled up.

        See Also:
        Constant Field Values
      • SYS_STORAGE_THRESHOLD_MAX_BYTES

        public static final String SYS_STORAGE_THRESHOLD_MAX_BYTES
        Maximum byte size of the low storage threshold. This is to ensure that SYS_STORAGE_THRESHOLD_PERCENTAGE does not result in an overly large threshold for large storage devices. Currently this must be less than 2GB. This default is 500MB.
        See Also:
        Constant Field Values
      • SYS_STORAGE_FULL_THRESHOLD_BYTES

        public static final String SYS_STORAGE_FULL_THRESHOLD_BYTES
        Minimum bytes of free storage on the device before the data partition is considered full. By default, 1 MB is reserved to avoid system-wide SQLite disk full exceptions.
        See Also:
        Constant Field Values
      • SYNC_MAX_RETRY_DELAY_IN_SECONDS

        public static final String SYNC_MAX_RETRY_DELAY_IN_SECONDS
        The maximum reconnect delay for short network outages or when the network is suspended due to phone use.
        See Also:
        Constant Field Values
      • CAPTIVE_PORTAL_DETECTION_ENABLED

        public static final String CAPTIVE_PORTAL_DETECTION_ENABLED
        Setting to turn off captive portal detection. Feature is enabled by default and the setting needs to be set to 0 to disable it.
        See Also:
        Constant Field Values
      • CAPTIVE_PORTAL_SERVER

        public static final String CAPTIVE_PORTAL_SERVER
        The server used for captive portal detection upon a new conection. A 204 response code from the server is used for validation.
        See Also:
        Constant Field Values
      • SET_INSTALL_LOCATION

        public static final String SET_INSTALL_LOCATION
        Let user pick default install location.
        See Also:
        Constant Field Values
      • DEFAULT_INSTALL_LOCATION

        public static final String DEFAULT_INSTALL_LOCATION
        Default install location value. 0 = auto, let system decide 1 = internal 2 = sdcard
        See Also:
        Constant Field Values
      • INET_CONDITION_DEBOUNCE_UP_DELAY

        public static final String INET_CONDITION_DEBOUNCE_UP_DELAY
        ms during which to consume extra events related to Inet connection condition after a transtion to fully-connected
        See Also:
        Constant Field Values
      • INET_CONDITION_DEBOUNCE_DOWN_DELAY

        public static final String INET_CONDITION_DEBOUNCE_DOWN_DELAY
        ms during which to consume extra events related to Inet connection condtion after a transtion to partly-connected
        See Also:
        Constant Field Values
      • READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT

        public static final String READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT
        See Also:
        Constant Field Values
      • HTTP_PROXY

        public static final String HTTP_PROXY
        Host name and port for global http proxy. Uses ':' seperator for between host and port.
        See Also:
        Constant Field Values
      • GLOBAL_HTTP_PROXY_HOST

        public static final String GLOBAL_HTTP_PROXY_HOST
        Host name for global http proxy. Set via ConnectivityManager.
        See Also:
        Constant Field Values
      • GLOBAL_HTTP_PROXY_PORT

        public static final String GLOBAL_HTTP_PROXY_PORT
        Integer host port for global http proxy. Set via ConnectivityManager.
        See Also:
        Constant Field Values
      • GLOBAL_HTTP_PROXY_EXCLUSION_LIST

        public static final String GLOBAL_HTTP_PROXY_EXCLUSION_LIST
        Exclusion list for global proxy. This string contains a list of comma-separated domains where the global proxy does not apply. Domains should be listed in a comma- separated list. Example of acceptable formats: ".domain1.com,my.domain2.com" Use ConnectivityManager to set/get.
        See Also:
        Constant Field Values
      • SET_GLOBAL_HTTP_PROXY

        public static final String SET_GLOBAL_HTTP_PROXY
        Enables the UI setting to allow the user to specify the global HTTP proxy and associated exclusion list.
        See Also:
        Constant Field Values
      • DEFAULT_DNS_SERVER

        public static final String DEFAULT_DNS_SERVER
        Setting for default DNS in case nobody suggests one
        See Also:
        Constant Field Values
      • BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX

        public static final String BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX
        See Also:
        Constant Field Values
      • WINDOW_ANIMATION_SCALE

        public static final String WINDOW_ANIMATION_SCALE
        Scaling factor for normal window animations. Setting to 0 will disable window animations.
        See Also:
        Constant Field Values
      • TRANSITION_ANIMATION_SCALE

        public static final String TRANSITION_ANIMATION_SCALE
        Scaling factor for activity transition animations. Setting to 0 will disable window animations.
        See Also:
        Constant Field Values
      • ANIMATOR_DURATION_SCALE

        public static final String ANIMATOR_DURATION_SCALE
        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.
        See Also:
        Constant Field Values
      • FANCY_IME_ANIMATIONS

        public static final String FANCY_IME_ANIMATIONS
        Scaling factor for normal window animations. Setting to 0 will disable window animations.
        See Also:
        Constant Field Values
      • COMPATIBILITY_MODE

        public static final String COMPATIBILITY_MODE
        If 0, the compatibility mode is off for all applications. If 1, older applications run under compatibility mode. TODO: remove this settings before code freeze (bug/1907571)
        See Also:
        Constant Field Values
      • EMERGENCY_TONE

        public static final String EMERGENCY_TONE
        CDMA only settings Emergency Tone 0 = Off 1 = Alert 2 = Vibrate
        See Also:
        Constant Field Values
      • CALL_AUTO_RETRY

        public static final String CALL_AUTO_RETRY
        CDMA only settings Whether the auto retry is enabled. The value is boolean (1 or 0).
        See Also:
        Constant Field Values
      • PREFERRED_NETWORK_MODE

        public static final String PREFERRED_NETWORK_MODE
        The preferred network mode 7 = Global 6 = EvDo only 5 = CDMA w/o EvDo 4 = CDMA / EvDo auto 3 = GSM / WCDMA auto 2 = WCDMA only 1 = GSM only 0 = GSM / WCDMA preferred
        See Also:
        Constant Field Values
      • PREFERRED_CDMA_SUBSCRIPTION

        public static final String PREFERRED_CDMA_SUBSCRIPTION
        The cdma subscription 0 = Subscription from RUIM, when available 1 = Subscription from NV
        See Also:
        Constant Field Values
      • WAIT_FOR_DEBUGGER

        public static final String WAIT_FOR_DEBUGGER
        If 1, when launching DEBUG_APP it will wait for the debugger before starting user code. If 0, it will run normally.
        See Also:
        Constant Field Values
      • SHOW_PROCESSES

        public static final String SHOW_PROCESSES
        Control whether the process CPU usage meter should be shown.
        See Also:
        Constant Field Values
      • ALWAYS_FINISH_ACTIVITIES

        public static final String ALWAYS_FINISH_ACTIVITIES
        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.
        See Also:
        Constant Field Values
      • DOCK_AUDIO_MEDIA_ENABLED

        public static final String DOCK_AUDIO_MEDIA_ENABLED
        Use Dock audio output for media: 0 = disabled 1 = enabled
        See Also:
        Constant Field Values
      • SETTINGS_TO_BACKUP

        public static final String[] SETTINGS_TO_BACKUP
        Settings to backup. This is here so that it's in the same place as the settings keys and easy to update. These keys may be mentioned in the SETTINGS_TO_BACKUP arrays in System and Secure as well. This is because those tables drive both backup and restore, and restore needs to properly whitelist keys that used to live in those namespaces. The keys will only actually be backed up / restored if they are also mentioned in this table (Global.SETTINGS_TO_BACKUP). NOTE: Settings are backed up and restored in the order they appear in this array. If you have one setting depending on another, make sure that they are ordered appropriately.
    • Constructor Detail

      • Settings.Global

        public Settings.Global()
    • Method Detail

      • getBluetoothHeadsetPriorityKey

        public static final String getBluetoothHeadsetPriorityKey(String address)
        Get the key that retrieves a bluetooth headset's priority.
      • getBluetoothA2dpSinkPriorityKey

        public static final String getBluetoothA2dpSinkPriorityKey(String address)
        Get the key that retrieves a bluetooth a2dp sink's priority.
      • getBluetoothInputDevicePriorityKey

        public static final String getBluetoothInputDevicePriorityKey(String address)
        Get the key that retrieves a bluetooth Input Device's priority.
      • getString

        public static String getString(ContentResolver resolver,
                       String name)
        Look up a name in the database.
        Parameters:
        resolver - to access the database with
        name - to look up in the table
        Returns:
        the corresponding value, or null if not present
      • putString

        public static boolean putString(ContentResolver resolver,
                        String name,
                        String value)
        Store a name/value pair into the database.
        Parameters:
        resolver - to access the database with
        name - to store
        value - to associate with the name
        Returns:
        true if the value was set, false on database errors
      • getUriFor

        public static Uri getUriFor(String name)
        Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver.
        Parameters:
        name - to look up in the table
        Returns:
        the corresponding content URI, or null if not present
      • getInt

        public static int getInt(ContentResolver cr,
                 String name,
                 int def)
        Convenience function for retrieving a single secure settings value as an integer. Note that internally setting values are always stored as strings; this function converts the string to an integer for you. The default value will be returned if the setting is not defined or not an integer.
        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to retrieve.
        def - Value to return if the setting is not defined.
        Returns:
        The setting's current value, or 'def' if it is not defined or not a valid integer.
      • getInt

        public static int getInt(ContentResolver cr,
                 String name)
                          throws Settings.SettingNotFoundException
        Convenience function for retrieving a single secure settings value as an integer. Note that internally setting values are always stored as strings; this function converts the string to an integer for you.

        This version does not take a default value. If the setting has not been set, or the string value is not a number, it throws Settings.SettingNotFoundException.

        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to retrieve.
        Returns:
        The setting's current value.
        Throws:
        Settings.SettingNotFoundException - Thrown if a setting by the given name can't be found or the setting value is not an integer.
      • putInt

        public static boolean putInt(ContentResolver cr,
                     String name,
                     int value)
        Convenience function for updating a single settings value as an integer. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.
        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to modify.
        value - The new value for the setting.
        Returns:
        true if the value was set, false on database errors
      • getLong

        public static long getLong(ContentResolver cr,
                   String name,
                   long def)
        Convenience function for retrieving a single secure settings value as a long. Note that internally setting values are always stored as strings; this function converts the string to a long for you. The default value will be returned if the setting is not defined or not a long.
        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to retrieve.
        def - Value to return if the setting is not defined.
        Returns:
        The setting's current value, or 'def' if it is not defined or not a valid long.
      • getLong

        public static long getLong(ContentResolver cr,
                   String name)
                            throws Settings.SettingNotFoundException
        Convenience function for retrieving a single secure settings value as a long. Note that internally setting values are always stored as strings; this function converts the string to a long for you.

        This version does not take a default value. If the setting has not been set, or the string value is not a number, it throws Settings.SettingNotFoundException.

        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to retrieve.
        Returns:
        The setting's current value.
        Throws:
        Settings.SettingNotFoundException - Thrown if a setting by the given name can't be found or the setting value is not an integer.
      • putLong

        public static boolean putLong(ContentResolver cr,
                      String name,
                      long value)
        Convenience function for updating a secure settings value as a long integer. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.
        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to modify.
        value - The new value for the setting.
        Returns:
        true if the value was set, false on database errors
      • getFloat

        public static float getFloat(ContentResolver cr,
                     String name,
                     float def)
        Convenience function for retrieving a single secure settings value as a floating point number. Note that internally setting values are always stored as strings; this function converts the string to an float for you. The default value will be returned if the setting is not defined or not a valid float.
        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to retrieve.
        def - Value to return if the setting is not defined.
        Returns:
        The setting's current value, or 'def' if it is not defined or not a valid float.
      • getFloat

        public static float getFloat(ContentResolver cr,
                     String name)
                              throws Settings.SettingNotFoundException
        Convenience function for retrieving a single secure settings value as a float. Note that internally setting values are always stored as strings; this function converts the string to a float for you.

        This version does not take a default value. If the setting has not been set, or the string value is not a number, it throws Settings.SettingNotFoundException.

        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to retrieve.
        Returns:
        The setting's current value.
        Throws:
        Settings.SettingNotFoundException - Thrown if a setting by the given name can't be found or the setting value is not a float.
      • putFloat

        public static boolean putFloat(ContentResolver cr,
                       String name,
                       float value)
        Convenience function for updating a single settings value as a floating point number. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.
        Parameters:
        cr - The ContentResolver to access.
        name - The name of the setting to modify.
        value - The new value for the setting.
        Returns:
        true if the value was set, false on database errors


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 152 / 158692505. Delta: 0.07880 с