public final class Settings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Settings.Bookmarks
User-defined bookmarks and shortcuts.
|
static class |
Settings.Global
Global system settings, containing preferences that always apply identically
to all defined users.
|
static class |
Settings.NameValueTable
Common base for tables of name/value settings.
|
static class |
Settings.Secure
Secure system settings, containing system preferences that applications
can read but are not allowed to write.
|
static class |
Settings.SettingNotFoundException |
static class |
Settings.System
System settings, containing miscellaneous system preferences.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_ACCESSIBILITY_SETTINGS
Activity Action: Show settings for accessibility modules.
|
static String |
ACTION_ADD_ACCOUNT
Activity Action: Show add account screen for creating a new account.
|
static String |
ACTION_AIRPLANE_MODE_SETTINGS
Activity Action: Show settings to allow entering/exiting airplane mode.
|
static String |
ACTION_APN_SETTINGS
Activity Action: Show settings to allow configuration of APNs.
|
static String |
ACTION_APPLICATION_DETAILS_SETTINGS
Activity Action: Show screen of details about a particular application.
|
static String |
ACTION_APPLICATION_DEVELOPMENT_SETTINGS
Activity Action: Show settings to allow configuration of application
development-related settings.
|
static String |
ACTION_APPLICATION_SETTINGS
Activity Action: Show settings to allow configuration of application-related settings.
|
static String |
ACTION_BLUETOOTH_SETTINGS
Activity Action: Show settings to allow configuration of Bluetooth.
|
static String |
ACTION_DATA_ROAMING_SETTINGS
Activity Action: Show settings for selection of 2G/3G.
|
static String |
ACTION_DATE_SETTINGS
Activity Action: Show settings to allow configuration of date and time.
|
static String |
ACTION_DEVICE_INFO_SETTINGS
Activity Action: Show general device information settings (serial
number, software version, phone number, etc.).
|
static String |
ACTION_DISPLAY_SETTINGS
Activity Action: Show settings to allow configuration of display.
|
static String |
ACTION_INPUT_METHOD_SETTINGS
Activity Action: Show settings to configure input methods, in particular
allowing the user to enable input methods.
|
static String |
ACTION_INPUT_METHOD_SUBTYPE_SETTINGS
Activity Action: Show settings to enable/disable input method subtypes.
|
static String |
ACTION_INTERNAL_STORAGE_SETTINGS
Activity Action: Show settings for internal storage.
|
static String |
ACTION_LOCALE_SETTINGS
Activity Action: Show settings to allow configuration of locale.
|
static String |
ACTION_LOCATION_SOURCE_SETTINGS
Activity Action: Show settings to allow configuration of current location
sources.
|
static String |
ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS
Activity Action: Show settings to manage all applications.
|
static String |
ACTION_MANAGE_APPLICATIONS_SETTINGS
Activity Action: Show settings to manage installed applications.
|
static String |
ACTION_MEMORY_CARD_SETTINGS
Activity Action: Show settings for memory card storage.
|
static String |
ACTION_NETWORK_OPERATOR_SETTINGS
Activity Action: Show settings for selecting the network operator.
|
static String |
ACTION_NFC_SETTINGS
Activity Action: Show NFC settings.
|
static String |
ACTION_NFCSHARING_SETTINGS
Activity Action: Show NFC Sharing settings.
|
static String |
ACTION_PRIVACY_SETTINGS
Activity Action: Show settings to allow configuration of privacy options.
|
static String |
ACTION_QUICK_LAUNCH_SETTINGS
Activity Action: Show settings to allow configuration of quick launch shortcuts.
|
static String |
ACTION_SEARCH_SETTINGS
Activity Action: Show settings for global search.
|
static String |
ACTION_SECURITY_SETTINGS
Activity Action: Show settings to allow configuration of security and
location privacy.
|
static String |
ACTION_SETTINGS
Activity Action: Show system settings.
|
static String |
ACTION_SHOW_INPUT_METHOD_PICKER
Activity Action: Show a dialog to select input method.
|
static String |
ACTION_SOUND_SETTINGS
Activity Action: Show settings to allow configuration of sound and volume.
|
static String |
ACTION_SYNC_SETTINGS
Activity Action: Show settings to allow configuration of sync settings.
|
static String |
ACTION_SYSTEM_UPDATE_SETTINGS
Activity Action: Show settings for system update functionality.
|
static String |
ACTION_USER_DICTIONARY_INSERT
Activity Action: Adds a word to the user dictionary.
|
static String |
ACTION_USER_DICTIONARY_SETTINGS
Activity Action: Show settings to manage the user input dictionary.
|
static String |
ACTION_WIFI_DISPLAY_SETTINGS
Activity Action: Show settings to allow configuration of Wifi Displays.
|
static String |
ACTION_WIFI_IP_SETTINGS
Activity Action: Show settings to allow configuration of a static IP
address for Wi-Fi.
|
static String |
ACTION_WIFI_SETTINGS
Activity Action: Show settings to allow configuration of Wi-Fi.
|
static String |
ACTION_WIRELESS_SETTINGS
Activity Action: Show settings to allow configuration of wireless controls
such as Wi-Fi, Bluetooth and Mobile networks.
|
static String |
AUTHORITY |
static String |
CALL_METHOD_GET_GLOBAL |
static String |
CALL_METHOD_GET_SECURE |
static String |
CALL_METHOD_GET_SYSTEM |
static String |
CALL_METHOD_PUT_GLOBAL |
static String |
CALL_METHOD_PUT_SECURE |
static String |
CALL_METHOD_PUT_SYSTEM |
static String |
CALL_METHOD_USER_KEY |
static String |
EXTRA_AUTHORITIES
Activity Extra: Limit available options in launched activity based on the given authority.
|
static String |
EXTRA_INPUT_METHOD_ID |
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
static String |
getGTalkDeviceId(long androidId)
Returns the device ID that we should use when connecting to the mobile gtalk server.
|
public static final String ACTION_SETTINGS
Input: Nothing.
Output: Nothing.
public static final String ACTION_APN_SETTINGS
Input: Nothing.
Output: Nothing.
public static final String ACTION_LOCATION_SOURCE_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_WIRELESS_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_AIRPLANE_MODE_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_ACCESSIBILITY_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_SECURITY_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_PRIVACY_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_WIFI_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_WIFI_IP_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_BLUETOOTH_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_WIFI_DISPLAY_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_DATE_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_SOUND_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_DISPLAY_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_LOCALE_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_INPUT_METHOD_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_INPUT_METHOD_SUBTYPE_SETTINGS
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
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
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
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_INSERT
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
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
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
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
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
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
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_SYSTEM_UPDATE_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_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
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
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 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.
Input: Nothing.
Output: Nothing.
public static final String ACTION_NETWORK_OPERATOR_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_DATA_ROAMING_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_INTERNAL_STORAGE_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_MEMORY_CARD_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_SEARCH_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_DEVICE_INFO_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_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
NfcAdapter.isEnabled()
,
Constant Field Valuespublic static final String ACTION_NFCSHARING_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 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
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 ACTION_ADD_ACCOUNT
intent restricts the account types available based
on the authority given.
public static final String EXTRA_INPUT_METHOD_ID
public static final String AUTHORITY
public static String getGTalkDeviceId(long androidId)
androidId
- The Android ID for this device.