Language

ComponentEnabledState Enum

Definition

Enumerates values returned by several types and taken as a parameter of several types.

public enum ComponentEnabledState
type ComponentEnabledState = 
Inheritance
ComponentEnabledState

Fields

Name Value Description
Default 0

Flag for setApplicationEnabledSetting(String,int,int) and setComponentEnabledSetting(ComponentName,int,int): This component or application is in its default enabled state (as specified in its manifest). Explicitly setting the component state to this value restores it's enabled state to whatever is set in the manifest.

Android reference for android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Enabled 1

Flag for setApplicationEnabledSetting(String,int,int) and setComponentEnabledSetting(ComponentName,int,int): This component or application has been explictily enabled, regardless of what it has specified in its manifest.

Android reference for android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Disabled 2

Flag for setApplicationEnabledSetting(String,int,int) and setComponentEnabledSetting(ComponentName,int,int): This component or application has been explicitly disabled, regardless of what it has specified in its manifest.

Android reference for android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DisabledUser 3

Flag for setApplicationEnabledSetting(String,int,int) only: The user has explicitly disabled the application, regardless of what it has specified in its manifest. Because this is due to the user's request, they may re-enable it if desired through the appropriate system UI. This option currently cannot be used with setComponentEnabledSetting(ComponentName,int,int).

Android reference for android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DisabledUntilUsed 4

Flag for setApplicationEnabledSetting(String,int,int) only: This application should be considered, until the point where the user actually wants to use it. This means that it will not normally show up to the user (such as in the launcher), but various parts of the user interface can use GET_DISABLED_UNTIL_USED_COMPONENTS to still see it and allow the user to select it (as for example an IME, device admin, etc). Such code, once the user has selected the app, should at that point also make it enabled. This option currently can not be used with setComponentEnabledSetting(ComponentName,int,int).

Android reference for android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to