FileDocCategorySizeDatePackage
Settings.javaAPI DocAndroid 5.1 API283440Thu Mar 12 22:22:10 GMT 2015android.provider

Settings

public final class Settings extends Object
The Settings provider contains global system-level device preferences.

Fields Summary
public static final String
ACTION_SETTINGS
Activity Action: Show system settings.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_APN_SETTINGS
Activity Action: Show settings to allow configuration of APNs.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_LOCATION_SOURCE_SETTINGS
Activity Action: Show settings to allow configuration of current location sources.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_WIRELESS_SETTINGS
Activity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_AIRPLANE_MODE_SETTINGS
Activity Action: Show settings to allow entering/exiting airplane mode.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_VOICE_CONTROL_AIRPLANE_MODE
public static final String
ACTION_ACCESSIBILITY_SETTINGS
Activity Action: Show settings for accessibility modules.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_USAGE_ACCESS_SETTINGS
Activity Action: Show settings to control access to usage information.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_SECURITY_SETTINGS
Activity Action: Show settings to allow configuration of security and location privacy.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_TRUSTED_CREDENTIALS_USER
Activity Action: Show trusted credentials settings, opening to the user tab, to allow management of installed credentials.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_MONITORING_CERT_INFO
Activity Action: Show dialog explaining that an installed CA cert may enable monitoring of encrypted network traffic.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_PRIVACY_SETTINGS
Activity Action: Show settings to allow configuration of privacy options.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_WIFI_SETTINGS
Activity Action: Show settings to allow configuration of Wi-Fi.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_WIFI_IP_SETTINGS
Activity Action: Show settings to allow configuration of a static IP address for Wi-Fi.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_BLUETOOTH_SETTINGS
Activity Action: Show settings to allow configuration of Bluetooth.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_WIFI_DISPLAY_SETTINGS
Activity Action: Show settings to allow configuration of Wifi Displays.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_CAST_SETTINGS
Activity Action: Show settings to allow configuration of cast endpoints.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_DATE_SETTINGS
Activity Action: Show settings to allow configuration of date and time.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_SOUND_SETTINGS
Activity Action: Show settings to allow configuration of sound and volume.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_DISPLAY_SETTINGS
Activity Action: Show settings to allow configuration of display.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_LOCALE_SETTINGS
Activity Action: Show settings to allow configuration of locale.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_VOICE_INPUT_SETTINGS
Activity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_INPUT_METHOD_SETTINGS
Activity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_INPUT_METHOD_SUBTYPE_SETTINGS
Activity Action: Show settings to enable/disable input method subtypes.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

To tell which input method's subtypes are displayed in the settings, add {@link #EXTRA_INPUT_METHOD_ID} extra to this Intent with the input method id. If there is no extra in this Intent, subtypes from all installed input methods will be displayed in the settings.

public static final String
ACTION_SHOW_INPUT_METHOD_PICKER
Activity Action: Show a dialog to select input method.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_USER_DICTIONARY_SETTINGS
Activity Action: Show settings to manage the user input dictionary.

Starting with {@link android.os.Build.VERSION_CODES#KITKAT}, it is guaranteed there will always be an appropriate implementation for this Intent action. In prior releases of the platform this was optional, so ensure you safeguard against it.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_USER_DICTIONARY_INSERT
Activity Action: Adds a word to the user dictionary.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: An extra with key word that contains the word that should be added to the dictionary.

Output: Nothing.

public static final String
ACTION_APPLICATION_SETTINGS
Activity Action: Show settings to allow configuration of application-related settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_APPLICATION_DEVELOPMENT_SETTINGS
Activity Action: Show settings to allow configuration of application development-related settings. As of {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1} this action is a required part of the platform.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_QUICK_LAUNCH_SETTINGS
Activity Action: Show settings to allow configuration of quick launch shortcuts.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_MANAGE_APPLICATIONS_SETTINGS
Activity Action: Show settings to manage installed applications.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS
Activity Action: Show settings to manage all applications.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_APPLICATION_DETAILS_SETTINGS
Activity Action: Show screen of details about a particular application.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: The Intent's data URI specifies the application package name to be shown, with the "package" scheme. That is "package:com.my.app".

Output: Nothing.

public static final String
ACTION_APP_OPS_SETTINGS
public static final String
ACTION_SYSTEM_UPDATE_SETTINGS
Activity Action: Show settings for system update functionality.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_SYNC_SETTINGS
Activity Action: Show settings to allow configuration of sync settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

The account types available to add via the add account button may be restricted by adding an {@link #EXTRA_AUTHORITIES} extra to this Intent with one or more syncable content provider's authorities. Only account types which can sync with that content provider will be offered to the user.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_ADD_ACCOUNT
Activity Action: Show add account screen for creating a new account.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

The account types available to add may be restricted by adding an {@link #EXTRA_AUTHORITIES} extra to the Intent with one or more syncable content provider's authorities. Only account types which can sync with that content provider will be offered to the user.

Account types can also be filtered by adding an {@link #EXTRA_ACCOUNT_TYPES} extra to the Intent with one or more account types.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_NETWORK_OPERATOR_SETTINGS
Activity Action: Show settings for selecting the network operator.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_DATA_ROAMING_SETTINGS
Activity Action: Show settings for selection of 2G/3G.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_INTERNAL_STORAGE_SETTINGS
Activity Action: Show settings for internal storage.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_MEMORY_CARD_SETTINGS
Activity Action: Show settings for memory card storage.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_SEARCH_SETTINGS
Activity Action: Show settings for global search.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing

public static final String
ACTION_DEVICE_INFO_SETTINGS
Activity Action: Show general device information settings (serial number, software version, phone number, etc.).

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing

public static final String
ACTION_NFC_SETTINGS
Activity Action: Show NFC settings.

This shows UI that allows NFC to be turned on or off.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing

public static final String
ACTION_NFCSHARING_SETTINGS
Activity Action: Show NFC Sharing settings.

This shows UI that allows NDEF Push (Android Beam) to be turned on or off.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing

public static final String
ACTION_NFC_PAYMENT_SETTINGS
Activity Action: Show NFC Tap & Pay settings

This shows UI that allows the user to configure Tap&Pay settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing

public static final String
ACTION_DREAM_SETTINGS
Activity Action: Show Daydream settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_NOTIFICATION_LISTENER_SETTINGS
Activity Action: Show Notification listener settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_CONDITION_PROVIDER_SETTINGS
public static final String
ACTION_CAPTIONING_SETTINGS
Activity Action: Show settings for video captioning.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_PRINT_SETTINGS
Activity Action: Show the top level print settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
ACTION_ZEN_MODE_SETTINGS
Activity Action: Show Zen Mode configuration settings.
public static final String
ACTION_SHOW_REGULATORY_INFO
Activity Action: Show the regulatory information screen for the device.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Input: Nothing.

Output: Nothing.

public static final String
DEVICE_NAME_SETTINGS
Activity Action: Show Device Name Settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

public static final String
ACTION_PAIRING_SETTINGS
Activity Action: Show pairing settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

public static final String
ACTION_BATTERY_SAVER_SETTINGS
Activity Action: Show battery saver settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

public static final String
ACTION_HOME_SETTINGS
Activity Action: Show Home selection settings. If there are multiple activities that can satisfy the {@link Intent#CATEGORY_HOME} intent, this screen allows you to pick your preferred activity.
public static final String
ACTION_NOTIFICATION_SETTINGS
Activity Action: Show notification settings.
public static final String
ACTION_APP_NOTIFICATION_SETTINGS
Activity Action: Show notification settings for a single app.
public static final String
ACTION_APP_NOTIFICATION_REDACTION
Activity Action: Show notification redaction settings.
public static final String
EXTRA_APP_UID
public static final String
EXTRA_APP_PACKAGE
public static final String
CALL_METHOD_GET_SYSTEM
public static final String
CALL_METHOD_GET_SECURE
public static final String
CALL_METHOD_GET_GLOBAL
public static final String
CALL_METHOD_USER_KEY
public static final String
CALL_METHOD_PUT_SYSTEM
public static final String
CALL_METHOD_PUT_SECURE
public static final String
CALL_METHOD_PUT_GLOBAL
public static final String
EXTRA_AUTHORITIES
Activity Extra: Limit available options in launched activity based on the given authority.

This can be passed as an extra field in an Activity Intent with one or more syncable content provider's authorities as a String[]. This field is used by some intents to alter the behavior of the called activity.

Example: The {@link #ACTION_ADD_ACCOUNT} intent restricts the account types available based on the authority given.

public static final String
EXTRA_ACCOUNT_TYPES
Activity Extra: Limit available options in launched activity based on the given account types.

This can be passed as an extra field in an Activity Intent with one or more account types as a String[]. This field is used by some intents to alter the behavior of the called activity.

Example: The {@link #ACTION_ADD_ACCOUNT} intent restricts the account types to the specified list.

public static final String
EXTRA_INPUT_METHOD_ID
public static final String
EXTRA_INPUT_DEVICE_IDENTIFIER
Activity Extra: The device identifier to act upon.

This can be passed as an extra field in an Activity Intent with a single InputDeviceIdentifier. This field is used by some activities to jump straight into the settings for the given device.

Example: The {@link #ACTION_INPUT_METHOD_SETTINGS} intent opens the keyboard layout dialog for the given device.

public static final String
EXTRA_AIRPLANE_MODE_ENABLED
private static final String
JID_RESOURCE_PREFIX
public static final String
AUTHORITY
private static final String
TAG
private static final boolean
LOCAL_LOGV
private static final Object
mLocationSettingsLock
Constructors Summary
Methods Summary
public static java.lang.StringgetGTalkDeviceId(long androidId)
Returns the device ID that we should use when connecting to the mobile gtalk server. This is a string like "android-0x1242", where the hex string is the Android ID obtained from the GoogleLoginService.

param
androidId The Android ID for this device.
return
The device ID that should be used when connecting to the mobile gtalk server.
hide

        return "android-" + Long.toHexString(androidId);