IT. Expert System.

Android Reference

Settings.Secure


android.provider

Class Settings.Secure

  • All Implemented Interfaces:
    BaseColumns
    Enclosing class:
    Settings


    public static final class Settings.Secure
    extends Settings.NameValueTable
    Secure system settings, containing system preferences that applications can read but are not allowed to write. These are for preferences that the user must explicitly modify through the system UI or specialized APIs for those values, not modified directly by applications.
    • Field Detail

      • CONTENT_URI

        public static final Uri CONTENT_URI
        The content:// style URL for this table
      • BUGREPORT_IN_POWER_MENU

        public static final String BUGREPORT_IN_POWER_MENU
        When the user has enable the option to have a "bug report" command in the power menu.
        See Also:
        Constant Field Values
      • ALLOW_MOCK_LOCATION

        public static final String ALLOW_MOCK_LOCATION
        Setting to allow mock locations and location provider status to be injected into the LocationManager service for testing purposes during application development. These locations and status values override actual location and status information generated by network, gps, or other location providers.
        See Also:
        Constant Field Values
      • ANDROID_ID

        public static final String ANDROID_ID
        A 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.)
        See Also:
        Constant Field Values
      • DEFAULT_INPUT_METHOD

        public static final String DEFAULT_INPUT_METHOD
        Setting to record the input method used by default, holding the ID of the desired method.
        See Also:
        Constant Field Values
      • SELECTED_INPUT_METHOD_SUBTYPE

        public static final String SELECTED_INPUT_METHOD_SUBTYPE
        Setting to record the input method subtype used by default, holding the ID of the desired method.
        See Also:
        Constant Field Values
      • INPUT_METHODS_SUBTYPE_HISTORY

        public static final String INPUT_METHODS_SUBTYPE_HISTORY
        Setting to record the history of input method subtype, holding the pair of ID of IME and its last used subtype.
        See Also:
        Constant Field Values
      • INPUT_METHOD_SELECTOR_VISIBILITY

        public static final String INPUT_METHOD_SELECTOR_VISIBILITY
        Setting to record the visibility of input method selector
        See Also:
        Constant Field Values
      • USER_SETUP_COMPLETE

        public static final String USER_SETUP_COMPLETE
        Whether the current user has been set up via setup wizard (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • ENABLED_INPUT_METHODS

        public static final String ENABLED_INPUT_METHODS
        List of input methods that are currently enabled. This is a string containing the IDs of all enabled input methods, each ID separated by ':'.
        See Also:
        Constant Field Values
      • DISABLED_SYSTEM_INPUT_METHODS

        public static final String DISABLED_SYSTEM_INPUT_METHODS
        List of system input methods that are currently disabled. This is a string containing the IDs of all disabled input methods, each ID separated by ':'.
        See Also:
        Constant Field Values
      • LOCATION_PROVIDERS_ALLOWED

        public static final String LOCATION_PROVIDERS_ALLOWED
        Comma-separated list of location providers that activities may access.
        See Also:
        Constant Field Values
      • LOCK_BIOMETRIC_WEAK_FLAGS

        public static final String LOCK_BIOMETRIC_WEAK_FLAGS
        A flag containing settings used for biometric weak
        See Also:
        Constant Field Values
      • LOCK_PATTERN_ENABLED

        public static final String LOCK_PATTERN_ENABLED
        Whether autolock is enabled (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • LOCK_PATTERN_VISIBLE

        public static final String LOCK_PATTERN_VISIBLE
        Whether lock pattern is visible as user enters (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • LOCK_SCREEN_LOCK_AFTER_TIMEOUT

        public static final String LOCK_SCREEN_LOCK_AFTER_TIMEOUT
        This preference allows the device to be locked given time after screen goes off, subject to current DeviceAdmin policy limits.
        See Also:
        Constant Field Values
      • LOCK_SCREEN_OWNER_INFO

        public static final String LOCK_SCREEN_OWNER_INFO
        This preference contains the string that shows for owner info on LockScreen.
        See Also:
        Constant Field Values
      • LOCK_SCREEN_APPWIDGET_IDS

        public static final String LOCK_SCREEN_APPWIDGET_IDS
        Ids of the user-selected appwidgets on the lockscreen (comma-delimited).
        See Also:
        Constant Field Values
      • LOCK_SCREEN_FALLBACK_APPWIDGET_ID

        public static final String LOCK_SCREEN_FALLBACK_APPWIDGET_ID
        Id of the appwidget shown on the lock screen when appwidgets are disabled.
        See Also:
        Constant Field Values
      • LOCK_SCREEN_STICKY_APPWIDGET

        public static final String LOCK_SCREEN_STICKY_APPWIDGET
        Index of the lockscreen appwidget to restore, -1 if none.
        See Also:
        Constant Field Values
      • LOCK_SCREEN_OWNER_INFO_ENABLED

        public static final String LOCK_SCREEN_OWNER_INFO_ENABLED
        This preference enables showing the owner info on LockScreen.
        See Also:
        Constant Field Values
      • LOGGING_ID

        @Deprecated
        public static final String LOGGING_ID
        Deprecated. This identifier is poorly initialized and has many collisions. It should not be used.
        The Logging ID (a unique 64-bit value) as a hex string. Used as a pseudonymous identifier for logging.
        See Also:
        Constant Field Values
      • PARENTAL_CONTROL_LAST_UPDATE

        public static final String PARENTAL_CONTROL_LAST_UPDATE
        No longer supported.
        See Also:
        Constant Field Values
      • PARENTAL_CONTROL_REDIRECT_URL

        public static final String PARENTAL_CONTROL_REDIRECT_URL
        No longer supported.
        See Also:
        Constant Field Values
      • SETTINGS_CLASSNAME

        public static final String SETTINGS_CLASSNAME
        Settings classname to launch when Settings is clicked from All Applications. Needed because of user testing between the old and new Settings apps.
        See Also:
        Constant Field Values
      • TOUCH_EXPLORATION_ENABLED

        public static final String TOUCH_EXPLORATION_ENABLED
        If touch exploration is enabled.
        See Also:
        Constant Field Values
      • ENABLED_ACCESSIBILITY_SERVICES

        public static final String ENABLED_ACCESSIBILITY_SERVICES
        List of the enabled accessibility providers.
        See Also:
        Constant Field Values
      • TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES

        public static final String TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES
        List of the accessibility services to which the user has granted permission to put the device into touch exploration mode.
        See Also:
        Constant Field Values
      • ACCESSIBILITY_SPEAK_PASSWORD

        public static final String ACCESSIBILITY_SPEAK_PASSWORD
        Whether to speak passwords while in accessibility mode.
        See Also:
        Constant Field Values
      • ACCESSIBILITY_SCRIPT_INJECTION

        public static final String ACCESSIBILITY_SCRIPT_INJECTION
        If injection of accessibility enhancing JavaScript screen-reader is enabled.

        Note: The JavaScript based screen-reader is served by the Google infrastructure and enable users with disabilities to efficiently navigate in and explore web content.

        This property represents a boolean value.

        See Also:
        Constant Field Values
      • ACCESSIBILITY_SCREEN_READER_URL

        public static final String ACCESSIBILITY_SCREEN_READER_URL
        The URL for the injected JavaScript based screen-reader used for providing accessibility of content in WebView.

        Note: The JavaScript based screen-reader is served by the Google infrastructure and enable users with disabilities to efficiently navigate in and explore web content.

        This property represents a string value.

        See Also:
        Constant Field Values
      • ACCESSIBILITY_WEB_CONTENT_KEY_BINDINGS

        public static final String ACCESSIBILITY_WEB_CONTENT_KEY_BINDINGS
        Key bindings for navigation in built-in accessibility support for web content.

        Note: These key bindings are for the built-in accessibility navigation for web content which is used as a fall back solution if JavaScript in a WebView is not enabled or the user has not opted-in script injection from Google.

        The bindings are separated by semi-colon. A binding is a mapping from a key to a sequence of actions (for more details look at android.webkit.AccessibilityInjector). A key is represented as the hexademical string representation of an integer obtained from a meta state (optional) shifted sixteen times left and bitwise ored with a key code. An action is represented as a hexademical string representation of an integer where the first two digits are navigation action index, the second, the third, and the fourth digit pairs represent the action arguments. The separate actions in a binding are colon separated. The key and the action sequence it maps to are separated by equals.

        For example, the binding below maps the DPAD right button to traverse the current navigation axis once without firing an accessibility event and to perform the same traversal again but to fire an event: 0x16=0x01000100:0x01000101;

        The goal of this binding is to enable dynamic rebinding of keys to navigation actions for web content without requiring a framework change.

        This property represents a string value.

        See Also:
        Constant Field Values
      • ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED

        public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED
        Setting that specifies whether the display magnification is enabled. Display magnifications allows the user to zoom in the display content and is targeted to low vision users. The current magnification scale is controlled by ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE.
        See Also:
        Constant Field Values
      • ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE

        public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE
        Setting that specifies what the display magnification scale is. Display magnifications allows the user to zoom in the display content and is targeted to low vision users. Whether a display magnification is performed is controlled by ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED
        See Also:
        Constant Field Values
      • ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE

        public static final String ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE
        Setting that specifies whether the display magnification should be automatically updated. If this fearture is enabled the system will exit magnification mode or pan the viewport when a context change occurs. For example, on staring a new activity or rotating the screen, the system may zoom out so the user can see the new context he is in. Another example is on showing a window that is not visible in the magnified viewport the system may pan the viewport to make the window the has popped up so the user knows that the context has changed. Whether a screen magnification is performed is controlled by ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED
        See Also:
        Constant Field Values
      • LONG_PRESS_TIMEOUT

        public static final String LONG_PRESS_TIMEOUT
        The timout for considering a press to be a long press in milliseconds.
        See Also:
        Constant Field Values
      • TTS_USE_DEFAULTS

        @Deprecated
        public static final String TTS_USE_DEFAULTS
        Deprecated. The value of this setting is no longer respected by the framework text to speech APIs as of the Ice Cream Sandwich release.
        Setting to always use the default text-to-speech settings regardless of the application settings. 1 = override application settings, 0 = use application settings (if specified).
        See Also:
        Constant Field Values
      • TTS_DEFAULT_RATE

        public static final String TTS_DEFAULT_RATE
        Default text-to-speech engine speech rate. 100 = 1x
        See Also:
        Constant Field Values
      • TTS_DEFAULT_PITCH

        public static final String TTS_DEFAULT_PITCH
        Default text-to-speech engine pitch. 100 = 1x
        See Also:
        Constant Field Values
      • TTS_DEFAULT_LANG

        @Deprecated
        public static final String TTS_DEFAULT_LANG
        Deprecated. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the default locale. TextToSpeech.getLanguage().
        Default text-to-speech language.
        See Also:
        Constant Field Values
      • TTS_DEFAULT_COUNTRY

        @Deprecated
        public static final String TTS_DEFAULT_COUNTRY
        Deprecated. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the default locale. TextToSpeech.getLanguage().
        Default text-to-speech country.
        See Also:
        Constant Field Values
      • TTS_DEFAULT_VARIANT

        @Deprecated
        public static final String TTS_DEFAULT_VARIANT
        Deprecated. this setting is no longer in use, as of the Ice Cream Sandwich release. Apps should never need to read this setting directly, instead can query the TextToSpeech framework classes for the locale that is in use TextToSpeech.getLanguage().
        Default text-to-speech locale variant.
        See Also:
        Constant Field Values
      • TTS_DEFAULT_LOCALE

        public static final String TTS_DEFAULT_LOCALE
        Stores the default tts locales on a per engine basis. Stored as a comma seperated list of values, each value being of the form engine_name:locale for example, com.foo.ttsengine:eng-USA,com.bar.ttsengine:esp-ESP. This supersedes TTS_DEFAULT_LANG, TTS_DEFAULT_COUNTRY and TTS_DEFAULT_VARIANT. Apps should never need to read this setting directly, and can query the TextToSpeech framework classes for the locale that is in use.
        See Also:
        Constant Field Values
      • TTS_ENABLED_PLUGINS

        public static final String TTS_ENABLED_PLUGINS
        Space delimited list of plugin packages that are enabled.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE

        @Deprecated
        public static final String WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
        Deprecated. This setting is not used.
        The acceptable packet loss percentage (range 0 - 100) before trying another AP on the same network.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_AP_COUNT

        @Deprecated
        public static final String WIFI_WATCHDOG_AP_COUNT
        Deprecated. This setting is not used.
        The number of access points required for a network in order for the watchdog to monitor it.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS

        @Deprecated
        public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
        Deprecated. This setting is not used.
        The delay between background checks.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED

        @Deprecated
        public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
        Deprecated. This setting is not used.
        Whether the Wi-Fi watchdog is enabled for background checking even after it thinks the user has connected to a good access point.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS

        @Deprecated
        public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
        Deprecated. This setting is not used.
        The timeout for a background ping
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT

        @Deprecated
        public static final String WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
        Deprecated. This setting is not used.
        The number of initial pings to perform that *may* be ignored if they fail. Again, if these fail, they will *not* be used in packet loss calculation. For example, one network always seemed to time out for the first couple pings, so this is set to 3 by default.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_MAX_AP_CHECKS

        @Deprecated
        public static final String WIFI_WATCHDOG_MAX_AP_CHECKS
        Deprecated. This setting is not used.
        The maximum number of access points (per network) to attempt to test. If this number is reached, the watchdog will no longer monitor the initial connection state for the network. This is a safeguard for networks containing multiple APs whose DNS does not respond to pings.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_WATCH_LIST

        @Deprecated
        public static final String WIFI_WATCHDOG_WATCH_LIST
        Deprecated. This setting is not used.
        A comma-separated list of SSIDs for which the Wi-Fi watchdog should be enabled.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_PING_COUNT

        @Deprecated
        public static final String WIFI_WATCHDOG_PING_COUNT
        Deprecated. This setting is not used.
        The number of pings to test if an access point is a good connection.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_PING_DELAY_MS

        @Deprecated
        public static final String WIFI_WATCHDOG_PING_DELAY_MS
        Deprecated. This setting is not used.
        The delay between pings.
        See Also:
        Constant Field Values
      • WIFI_WATCHDOG_PING_TIMEOUT_MS

        @Deprecated
        public static final String WIFI_WATCHDOG_PING_TIMEOUT_MS
        Deprecated. This setting is not used.
        The timeout per ping.
        See Also:
        Constant Field Values
      • ALLOWED_GEOLOCATION_ORIGINS

        public static final String ALLOWED_GEOLOCATION_ORIGINS
        Origins for which browsers should allow geolocation by default. The value is a space-separated list of origins.
        See Also:
        Constant Field Values
      • PREFERRED_TTY_MODE

        public static final String PREFERRED_TTY_MODE
        The preferred TTY mode 0 = TTy Off, CDMA default 1 = TTY Full 2 = TTY HCO 3 = TTY VCO
        See Also:
        Constant Field Values
      • ENHANCED_VOICE_PRIVACY_ENABLED

        public static final String ENHANCED_VOICE_PRIVACY_ENABLED
        Whether the enhanced voice privacy mode is enabled. 0 = normal voice privacy 1 = enhanced voice privacy
        See Also:
        Constant Field Values
      • TTY_MODE_ENABLED

        public static final String TTY_MODE_ENABLED
        Whether the TTY mode mode is enabled. 0 = disabled 1 = enabled
        See Also:
        Constant Field Values
      • BACKUP_ENABLED

        public static final String BACKUP_ENABLED
        Controls whether settings backup is enabled. Type: int ( 0 = disabled, 1 = enabled )
        See Also:
        Constant Field Values
      • BACKUP_AUTO_RESTORE

        public static final String BACKUP_AUTO_RESTORE
        Controls whether application data is automatically restored from backup at install time. Type: int ( 0 = disabled, 1 = enabled )
        See Also:
        Constant Field Values
      • BACKUP_PROVISIONED

        public static final String BACKUP_PROVISIONED
        Indicates whether settings backup has been fully provisioned. Type: int ( 0 = unprovisioned, 1 = fully provisioned )
        See Also:
        Constant Field Values
      • BACKUP_TRANSPORT

        public static final String BACKUP_TRANSPORT
        Component of the transport to use for backup/restore.
        See Also:
        Constant Field Values
      • LAST_SETUP_SHOWN

        public static final String LAST_SETUP_SHOWN
        Version for which the setup wizard was last shown. Bumped for each release when there is new setup information to show.
        See Also:
        Constant Field Values
      • SEARCH_NUM_PROMOTED_SOURCES

        public static final String SEARCH_NUM_PROMOTED_SOURCES
        The number of promoted sources in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_MAX_RESULTS_TO_DISPLAY

        public static final String SEARCH_MAX_RESULTS_TO_DISPLAY
        The maximum number of suggestions returned by GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_MAX_RESULTS_PER_SOURCE

        public static final String SEARCH_MAX_RESULTS_PER_SOURCE
        The number of suggestions GlobalSearch will ask each non-web search source for.
        See Also:
        Constant Field Values
      • SEARCH_WEB_RESULTS_OVERRIDE_LIMIT

        public static final String SEARCH_WEB_RESULTS_OVERRIDE_LIMIT
        The number of suggestions the GlobalSearch will ask the web search source for.
        See Also:
        Constant Field Values
      • SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS

        public static final String SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS
        The number of milliseconds that GlobalSearch will wait for suggestions from promoted sources before continuing with all other sources.
        See Also:
        Constant Field Values
      • SEARCH_SOURCE_TIMEOUT_MILLIS

        public static final String SEARCH_SOURCE_TIMEOUT_MILLIS
        The number of milliseconds before GlobalSearch aborts search suggesiton queries.
        See Also:
        Constant Field Values
      • SEARCH_PREFILL_MILLIS

        public static final String SEARCH_PREFILL_MILLIS
        The maximum number of milliseconds that GlobalSearch shows the previous results after receiving a new query.
        See Also:
        Constant Field Values
      • SEARCH_MAX_STAT_AGE_MILLIS

        public static final String SEARCH_MAX_STAT_AGE_MILLIS
        The maximum age of log data used for shortcuts in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS

        public static final String SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS
        The maximum age of log data used for source ranking in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING

        public static final String SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING
        The minimum number of impressions needed to rank a source in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING

        public static final String SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING
        The minimum number of clicks needed to rank a source in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_MAX_SHORTCUTS_RETURNED

        public static final String SEARCH_MAX_SHORTCUTS_RETURNED
        The maximum number of shortcuts shown by GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_QUERY_THREAD_CORE_POOL_SIZE

        public static final String SEARCH_QUERY_THREAD_CORE_POOL_SIZE
        The size of the core thread pool for suggestion queries in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_QUERY_THREAD_MAX_POOL_SIZE

        public static final String SEARCH_QUERY_THREAD_MAX_POOL_SIZE
        The maximum size of the thread pool for suggestion queries in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE

        public static final String SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE
        The size of the core thread pool for shortcut refreshing in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE

        public static final String SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE
        The maximum size of the thread pool for shortcut refreshing in GlobalSearch.
        See Also:
        Constant Field Values
      • SEARCH_THREAD_KEEPALIVE_SECONDS

        public static final String SEARCH_THREAD_KEEPALIVE_SECONDS
        The maximun time that excess threads in the GlobalSeach thread pools will wait before terminating.
        See Also:
        Constant Field Values
      • SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT

        public static final String SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT
        The maximum number of concurrent suggestion queries to each source.
        See Also:
        Constant Field Values
      • MOUNT_PLAY_NOTIFICATION_SND

        public static final String MOUNT_PLAY_NOTIFICATION_SND
        Whether or not alert sounds are played on MountService events. (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • MOUNT_UMS_AUTOSTART

        public static final String MOUNT_UMS_AUTOSTART
        Whether or not UMS auto-starts on UMS host detection. (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • MOUNT_UMS_PROMPT

        public static final String MOUNT_UMS_PROMPT
        Whether or not a notification is displayed on UMS host detection. (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • MOUNT_UMS_NOTIFY_ENABLED

        public static final String MOUNT_UMS_NOTIFY_ENABLED
        Whether or not a notification is displayed while UMS is enabled. (0 = false, 1 = true)
        See Also:
        Constant Field Values
      • ANR_SHOW_BACKGROUND

        public static final String ANR_SHOW_BACKGROUND
        If nonzero, ANRs in invisible background processes bring up a dialog. Otherwise, the process will be silently killed.
        See Also:
        Constant Field Values
      • SELECTED_SPELL_CHECKER

        public static final String SELECTED_SPELL_CHECKER
        The ComponentName string of the selected spell checker service which is one of the services managed by the text service manager.
        See Also:
        Constant Field Values
      • SELECTED_SPELL_CHECKER_SUBTYPE

        public static final String SELECTED_SPELL_CHECKER_SUBTYPE
        The ComponentName string of the selected subtype of the selected spell checker service which is one of the services managed by the text service manager.
        See Also:
        Constant Field Values
      • INCALL_POWER_BUTTON_BEHAVIOR

        public static final String INCALL_POWER_BUTTON_BEHAVIOR
        What happens when the user presses the Power button while in-call and the screen is on.
        Values:
        1 - The Power button turns off the screen and locks the device. (Default behavior)
        2 - The Power button hangs up the current call.
        See Also:
        Constant Field Values
      • INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF

        public static final int INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF
        INCALL_POWER_BUTTON_BEHAVIOR value for "turn off screen".
        See Also:
        Constant Field Values
      • INCALL_POWER_BUTTON_BEHAVIOR_HANGUP

        public static final int INCALL_POWER_BUTTON_BEHAVIOR_HANGUP
        INCALL_POWER_BUTTON_BEHAVIOR value for "hang up".
        See Also:
        Constant Field Values
      • INCALL_POWER_BUTTON_BEHAVIOR_DEFAULT

        public static final int INCALL_POWER_BUTTON_BEHAVIOR_DEFAULT
        INCALL_POWER_BUTTON_BEHAVIOR default value.
        See Also:
        Constant Field Values
      • UI_NIGHT_MODE

        public static final String UI_NIGHT_MODE
        The current night mode that has been selected by the user. Owned and controlled by UiModeManagerService. Constants are as per UiModeManager.
        See Also:
        Constant Field Values
      • SCREENSAVER_COMPONENTS

        public static final String SCREENSAVER_COMPONENTS
        The user's chosen screensaver components. These will be launched by the PhoneWindowManager after a timeout when not on battery, or upon dock insertion (if SCREENSAVER_ACTIVATE_ON_DOCK is set to 1).
        See Also:
        Constant Field Values
      • SCREENSAVER_ACTIVATE_ON_DOCK

        public static final String SCREENSAVER_ACTIVATE_ON_DOCK
        If screensavers are enabled, whether the screensaver should be automatically launched when the device is inserted into a (desk) dock.
        See Also:
        Constant Field Values
      • SCREENSAVER_ACTIVATE_ON_SLEEP

        public static final String SCREENSAVER_ACTIVATE_ON_SLEEP
        If screensavers are enabled, whether the screensaver should be automatically launched when the screen times out when not on battery.
        See Also:
        Constant Field Values
      • SCREENSAVER_DEFAULT_COMPONENT

        public static final String SCREENSAVER_DEFAULT_COMPONENT
        If screensavers are enabled, the default screensaver component.
        See Also:
        Constant Field Values
      • SETTINGS_TO_BACKUP

        public static final String[] SETTINGS_TO_BACKUP
        This are the settings to be backed up. 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.Secure

        public Settings.Secure()
    • Method Detail

      • getMovedKeys

        public static void getMovedKeys(HashSet<String> outKeySet)
      • 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.
      • getIntForUser

        public static int getIntForUser(ContentResolver cr,
                        String name,
                        int def,
                        int userHandle)
      • 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
      • putIntForUser

        public static boolean putIntForUser(ContentResolver cr,
                            String name,
                            int value,
                            int userHandle)
      • 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.
      • getLongForUser

        public static long getLongForUser(ContentResolver cr,
                          String name,
                          long def,
                          int userHandle)
      • 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
      • putLongForUser

        public static boolean putLongForUser(ContentResolver cr,
                             String name,
                             long value,
                             int userHandle)
      • 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.
      • getFloatForUser

        public static float getFloatForUser(ContentResolver cr,
                            String name,
                            float def,
                            int userHandle)
      • 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
      • putFloatForUser

        public static boolean putFloatForUser(ContentResolver cr,
                              String name,
                              float value,
                              int userHandle)
      • isLocationProviderEnabled

        public static final boolean isLocationProviderEnabled(ContentResolver cr,
                                        String provider)
        Helper method for determining if a location provider is enabled.
        Parameters:
        cr - the content resolver to use
        provider - the location provider to query
        Returns:
        true if the provider is enabled
      • isLocationProviderEnabledForUser

        public static final boolean isLocationProviderEnabledForUser(ContentResolver cr,
                                               String provider,
                                               int userId)
        Helper method for determining if a location provider is enabled.
        Parameters:
        cr - the content resolver to use
        provider - the location provider to query
        userId - the userId to query
        Returns:
        true if the provider is enabled
      • setLocationProviderEnabled

        public static final void setLocationProviderEnabled(ContentResolver cr,
                                      String provider,
                                      boolean enabled)
        Thread-safe method for enabling or disabling a single location provider.
        Parameters:
        cr - the content resolver to use
        provider - the location provider to enable or disable
        enabled - true if the provider should be enabled
      • setLocationProviderEnabledForUser

        public static final void setLocationProviderEnabledForUser(ContentResolver cr,
                                             String provider,
                                             boolean enabled,
                                             int userId)
        Thread-safe method for enabling or disabling a single location provider.
        Parameters:
        cr - the content resolver to use
        provider - the location provider to enable or disable
        enabled - true if the provider should be enabled
        userId - the userId for which to enable/disable providers


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: 565 / 158677499. Delta: 0.09637 с