Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/content/pm/ActivityInfo#nestedclasses) \| [Constants](https://developer.android.com/reference/android/content/pm/ActivityInfo#constants) \| [Inherited Constants](https://developer.android.com/reference/android/content/pm/ActivityInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/content/pm/ActivityInfo#lfields) \| [Inherited Fields](https://developer.android.com/reference/android/content/pm/ActivityInfo#inhfields) \| [Ctors](https://developer.android.com/reference/android/content/pm/ActivityInfo#pubctors) \| [Methods](https://developer.android.com/reference/android/content/pm/ActivityInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/content/pm/ActivityInfo#inhmethods)

# ActivityInfo

*** ** * ** ***


`
public


class
ActivityInfo
`


`


`

`


`

`

extends https://developer.android.com/reference/android/content/pm/ComponentInfo


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||||
| ↳ | [android.content.pm.PackageItemInfo](https://developer.android.com/reference/android/content/pm/PackageItemInfo) |||
|   | ↳ | [android.content.pm.ComponentInfo](https://developer.android.com/reference/android/content/pm/ComponentInfo) ||
|   |   | ↳ | android.content.pm.ActivityInfo |

<br />

*** ** * ** ***

Information you can retrieve about a particular application
activity or receiver. This corresponds to information collected
from the AndroidManifest.xml's \<activity\> and
\<receiver\> tags.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/content/pm/ActivityInfo.WindowLayout` Contains information about position and size of the activity on the display. |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#COLOR_MODE_DEFAULT` Value for `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` indicating that the activity should use the default color mode (sRGB, low dynamic range). |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#COLOR_MODE_HDR` Value of `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` indicating that the activity should use a high dynamic range if the presentation display supports it. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT` Value of `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` indicating that the activity should use a wide color gamut if the presentation display supports it. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_ASSETS_PATHS` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle asset path changes. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_COLOR_MODE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle the change to the display color gamut or dynamic range. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_DENSITY` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle density changes. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_FONT_SCALE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the font scaling factor. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_FONT_WEIGHT_ADJUSTMENT` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to font weight. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_GRAMMATICAL_GENDER` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle the change to gender. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_KEYBOARD` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the keyboard type. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_KEYBOARD_HIDDEN` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the keyboard or navigation being hidden/exposed. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_LAYOUT_DIRECTION` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle the change to layout direction. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_LOCALE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the locale. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_MCC` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the IMSI MCC. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_MNC` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the IMSI MNC. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_NAVIGATION` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the navigation type. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_ORIENTATION` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the screen orientation. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_RESOURCES_UNUSED` <br /> This is probably not the constant you want, the resources compiler supports a less dangerous version of it, 'allKnown', that only suppresses all currently existing configuration change restarts depending on your target SDK rather than whatever the latest SDK supports, allowing the application to work with resources on future Platform versions. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_SCREEN_LAYOUT` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the screen layout. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_SCREEN_SIZE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle the screen size. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_SMALLEST_SCREEN_SIZE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle the smallest screen size. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_TOUCHSCREEN` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle changes to the touchscreen type. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_UI_MODE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle the ui mode. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_ALWAYS` Constant corresponding to `always` in the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_INTO_EXISTING` Constant corresponding to `intoExisting` in the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_NEVER` Constant corresponding to `never` in the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_NONE` Constant corresponding to `none` in the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ALLOW_TASK_REPARENTING` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` that indicates that the activity can be moved between tasks based on its task affinity. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ALLOW_UNTRUSTED_ACTIVITY_EMBEDDING` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: If set, indicates that the activity can be embedded by untrusted hosts. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ALWAYS_RETAIN_TASK_STATE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the activity is the root of a task, that task's stack should never be cleared when it is relaunched from home. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_AUTO_REMOVE_FROM_RECENTS` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that tasks started with this activity are to be removed from the recent list of tasks when the last activity in the task is finished. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_CLEAR_TASK_ON_LAUNCH` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the activity is the root of a task, that task's stack should be cleared each time the user re-launches it from home. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ENABLE_VR_MODE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that this activity should be run with VR mode enabled. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_EXCLUDE_FROM_RECENTS` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` that indicates that the activity should not appear in the list of recently launched activities. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when a request to close system windows happens, this activity is finished. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_FINISH_ON_TASK_LAUNCH` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the activity's task is relaunched from home, this activity should be finished. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_HARDWARE_ACCELERATED` Value for `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: true when the application's rendering should be hardware accelerated. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_IMMERSIVE` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` corresponding to an immersive activity that wishes not to be interrupted by notifications. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_MULTIPROCESS` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating whether this activity is able to run in multiple processes. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_NO_HISTORY` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the user navigates away from an activity, it should be finished. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_PREFER_MINIMAL_POST_PROCESSING` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating whether the display should preferably be switched to a minimal post processing mode. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_RELINQUISH_TASK_IDENTITY` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: If set, a task rooted at this activity will have its baseIntent replaced by the activity immediately above this. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_RESUME_WHILE_PAUSING` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that this activity can start is creation/resume while the previous activity is still pausing. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_SINGLE_USER` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: If set, a single instance of the receiver will run for all users on the device. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_STATE_NOT_NEEDED` Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that the activity's state is not required to be saved, so that if there is a failure the activity will not be removed from the activity stack. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_MULTIPLE` Constant corresponding to `standard` in the `https://developer.android.com/reference/android/R.attr#launchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_INSTANCE` Constant corresponding to `singleInstance` in the `https://developer.android.com/reference/android/R.attr#launchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_INSTANCE_PER_TASK` Constant corresponding to `singleInstancePerTask` in the `https://developer.android.com/reference/android/R.attr#launchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_TASK` Constant corresponding to `singleTask` in the `https://developer.android.com/reference/android/R.attr#launchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_TOP` Constant corresponding to `singleTop` in the `https://developer.android.com/reference/android/R.attr#launchMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#PERSIST_ACROSS_REBOOTS` Constant corresponding to `persistAcrossReboots` in the `https://developer.android.com/reference/android/R.attr#persistableMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#PERSIST_NEVER` Constant corresponding to `doNotPersist` in the `https://developer.android.com/reference/android/R.attr#persistableMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#PERSIST_ROOT_ONLY` Constant corresponding to `persistRootOnly` in the `https://developer.android.com/reference/android/R.attr#persistableMode` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_BEHIND` Constant corresponding to `behind` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_FULL_SENSOR` Constant corresponding to `fullSensor` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_FULL_USER` Constant corresponding to `fullUser` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_LANDSCAPE` Constant corresponding to `landscape` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_LOCKED` Constant corresponding to `locked` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_NOSENSOR` Constant corresponding to `nosensor` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_PORTRAIT` Constant corresponding to `portrait` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_REVERSE_LANDSCAPE` Constant corresponding to `reverseLandscape` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_REVERSE_PORTRAIT` Constant corresponding to `reversePortrait` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR` Constant corresponding to `sensor` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR_LANDSCAPE` Constant corresponding to `sensorLandscape` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR_PORTRAIT` Constant corresponding to `sensorPortrait` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_UNSPECIFIED` Constant corresponding to `unspecified` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER` Constant corresponding to `user` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER_LANDSCAPE` Constant corresponding to `userLandscape` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER_PORTRAIT` Constant corresponding to `userPortrait` in the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute. |
| `int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW` Flag for use with `https://developer.android.com/reference/android/content/pm/ActivityInfo#uiOptions`. |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that
the Parcelable object's flattened representation includes a file descriptor.


`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written
is a return value, that is the result of a function such as
"`Parcelable someFunction()`",
"`void someFunction(out Parcelable)`", or
"`void someFunction(inout Parcelable)`".


| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/content/pm/ActivityInfo>` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#CREATOR` |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` The color mode requested by this activity. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` Bit mask of kinds of configuration changes that this activity can handle itself (without being restarted by the system). |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#documentLaunchMode` The document launch mode style requested by the activity. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` Options that have been set in the activity declaration in the manifest. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#launchMode` The launch mode style requested by the activity. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#maxRecents` The maximum number of tasks rooted at this activity that can be in the recent task list. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#parentActivityName` If defined, the activity named here is the logical parent of this activity. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#permission` Optional name of a permission required to be able to access this Activity. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#persistableMode` Value indicating how this activity is to be persisted across reboots for restoring in the Recents list. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#requiredDisplayCategory` Specifies the required display category of the activity. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#screenOrientation` The preferred screen orientation this activity would like to run in. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#softInputMode` The desired soft input mode for this activity's main window. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#targetActivity` If this is an activity alias, this is the real activity class to run for it. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#taskAffinity` The affinity this activity has for another task in the system. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#theme` A style resource identifier (in the package's resources) of this activity's theme. |
| ` public int` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#uiOptions` The desired extra UI options for this activity and its main window. |
| ` public https://developer.android.com/reference/android/content/pm/ActivityInfo.WindowLayout` | `https://developer.android.com/reference/android/content/pm/ActivityInfo#windowLayout` Information about desired position and size of activity on the display when it is first started. |

### Inherited fields

From class `https://developer.android.com/reference/android/content/pm/ComponentInfo` `
public


https://developer.android.com/reference/android/content/pm/ApplicationInfo` `https://developer.android.com/reference/android/content/pm/ComponentInfo#applicationInfo`

Global information about the application/package this component is a
part of.


`
public


https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/content/pm/ComponentInfo#attributionTags`

Set of attribution tags that should be automatically applied to this
component.


`
public


int` `https://developer.android.com/reference/android/content/pm/ComponentInfo#descriptionRes`

A string resource identifier (in the package's resources) containing
a user-readable description of the component.


`
public


boolean` `https://developer.android.com/reference/android/content/pm/ComponentInfo#directBootAware`

Indicates if this component is aware of direct boot lifecycle, and can be
safely run before the user has entered their credentials (such as a lock
pattern or PIN).


`
public


boolean` `https://developer.android.com/reference/android/content/pm/ComponentInfo#enabled`

Indicates whether or not this component may be instantiated.


`
public


boolean` `https://developer.android.com/reference/android/content/pm/ComponentInfo#exported`

Set to true if this component is available for use by other applications.


`
public


https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/content/pm/ComponentInfo#processName`

The name of the process this component should run in.


`
public


https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/content/pm/ComponentInfo#splitName`

The name of the split in which this component is declared.


From class `https://developer.android.com/reference/android/content/pm/PackageItemInfo` `
public


int` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#banner`

A drawable resource identifier (in the package's resources) of this
component's banner.


`
public


int` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#icon`

A drawable resource identifier (in the package's resources) of this
component's icon.


`
public


boolean` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#isArchived`

Whether the package is currently in an archived state.


`
public


int` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#labelRes`

A string resource identifier (in the package's resources) of this
component's label.


`
public


int` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#logo`

A drawable resource identifier (in the package's resources) of this
component's logo.


`
public


https://developer.android.com/reference/android/os/Bundle` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#metaData`

Additional meta-data associated with this component.


`
public


https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#name`

Public name of this item.


`
public


https://developer.android.com/reference/java/lang/CharSequence` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#nonLocalizedLabel`

The string provided in the AndroidManifest file, if any.


`
public


https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/content/pm/PackageItemInfo#packageName`

Name of the package that this item is in.


| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/content/pm/ActivityInfo#ActivityInfo()() ` |
| ` https://developer.android.com/reference/android/content/pm/ActivityInfo#ActivityInfo(android.content.pm.ActivityInfo)(https://developer.android.com/reference/android/content/pm/ActivityInfo orig) ` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/content/pm/ActivityInfo#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` void` | ` https://developer.android.com/reference/android/content/pm/ActivityInfo#dump(android.util.Printer,%20java.lang.String)(https://developer.android.com/reference/android/util/Printer pw, https://developer.android.com/reference/java/lang/String prefix) ` |
| ` https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/content/pm/ActivityInfo#getKnownActivityEmbeddingCerts()() ` Gets the trusted host certificate digests of apps that are allowed to embed this activity. |
| ` final int` | ` https://developer.android.com/reference/android/content/pm/ActivityInfo#getThemeResource()() ` Return the theme resource identifier to use for this activity. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/content/pm/ActivityInfo#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/content/pm/ActivityInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int parcelableFlags) ` |

### Inherited methods

From class `

https://developer.android.com/reference/android/content/pm/ComponentInfo

` `


void` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#dumpBack(android.util.Printer,%20java.lang.String)(https://developer.android.com/reference/android/util/Printer pw, https://developer.android.com/reference/java/lang/String prefix)
`


`


void` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#dumpFront(android.util.Printer,%20java.lang.String)(https://developer.android.com/reference/android/util/Printer pw, https://developer.android.com/reference/java/lang/String prefix)
`


`


final

int` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#getBannerResource()()
`

Return the banner resource identifier to use for this component.


`


final

int` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#getIconResource()()
`

Return the icon resource identifier to use for this component.


`


final

int` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#getLogoResource()()
`

Return the logo resource identifier to use for this component.


`


boolean` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#isEnabled()()
`

Return whether this component and its enclosing application are enabled.


`


void` `
https://developer.android.com/reference/android/content/pm/ComponentInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int parcelableFlags)
`


From class `

https://developer.android.com/reference/android/content/pm/PackageItemInfo

` `


void` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#dumpBack(android.util.Printer,%20java.lang.String)(https://developer.android.com/reference/android/util/Printer pw, https://developer.android.com/reference/java/lang/String prefix)
` `


void` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#dumpFront(android.util.Printer,%20java.lang.String)(https://developer.android.com/reference/android/util/Printer pw, https://developer.android.com/reference/java/lang/String prefix)
` `


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#loadBanner(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm)
`

Retrieve the current graphical banner associated with this item.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#loadIcon(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm)
`

Retrieve the current graphical icon associated with this item.


`


https://developer.android.com/reference/java/lang/CharSequence` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#loadLabel(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm)
`

Retrieve the current textual label associated with this item.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#loadLogo(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm)
`

Retrieve the current graphical logo associated with this item.


`


https://developer.android.com/reference/android/graphics/drawable/Drawable` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#loadUnbadgedIcon(android.content.pm.PackageManager)(https://developer.android.com/reference/android/content/pm/PackageManager pm)
`

Retrieve the current graphical icon associated with this item without
the addition of a work badge if applicable.


`


https://developer.android.com/reference/android/content/res/XmlResourceParser` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#loadXmlMetaData(android.content.pm.PackageManager,%20java.lang.String)(https://developer.android.com/reference/android/content/pm/PackageManager pm, https://developer.android.com/reference/java/lang/String name)
`

Load an XML resource attached to the meta-data of this item.


`


void` `
https://developer.android.com/reference/android/content/pm/PackageItemInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int parcelableFlags)
` From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

https://developer.android.com/reference/android/os/Parcelable

` `
abstract


int` `
https://developer.android.com/reference/android/os/Parcelable#describeContents()()
`

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.


`
abstract


void` `
https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags)
`

Flatten this object in to a Parcel.


## Constants

### COLOR_MODE_DEFAULT

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int COLOR_MODE_DEFAULT
```

Value for `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` indicating that the activity should use the
default color mode (sRGB, low dynamic range).

<br />

**See also:**

- `https://developer.android.com/reference/android/R.attr#colorMode`

Constant Value:

0
(0x00000000)


### COLOR_MODE_HDR

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int COLOR_MODE_HDR
```

Value of `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` indicating that the activity should use a
high dynamic range if the presentation display supports it.

Note: This does not impact SurfaceViews or SurfaceControls, as those have their own
independent HDR support.

**Important:** Although this value was added in API 26, it is strongly recommended
to avoid using it until API 34 which is when HDR support for the UI toolkit was officially
added.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/android/R.attr#colorMode`

Constant Value:

2
(0x00000002)


### COLOR_MODE_WIDE_COLOR_GAMUT

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int COLOR_MODE_WIDE_COLOR_GAMUT
```

Value of `https://developer.android.com/reference/android/content/pm/ActivityInfo#colorMode` indicating that the activity should use a
wide color gamut if the presentation display supports it.

<br />

**See also:**

- `https://developer.android.com/reference/android/R.attr#colorMode`

Constant Value:

1
(0x00000001)


### CONFIG_ASSETS_PATHS

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_ASSETS_PATHS
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle asset path changes. Set from the `https://developer.android.com/reference/android/R.attr#configChanges`
attribute. This is not a core resource configuration, but a higher-level value, so its
constant starts at the high bits.

<br />

Constant Value:

-2147483648
(0x80000000)


### CONFIG_COLOR_MODE

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_COLOR_MODE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle the change to the display color gamut or dynamic
range. Set from the `https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

16384
(0x00004000)


### CONFIG_DENSITY

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_DENSITY
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity can itself handle density
changes. Set from the `https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

4096
(0x00001000)


### CONFIG_FONT_SCALE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_FONT_SCALE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the font scaling factor. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute. This is
not a core resource configuration, but a higher-level value, so its
constant starts at the high bits.

<br />

Constant Value:

1073741824
(0x40000000)


### CONFIG_FONT_WEIGHT_ADJUSTMENT

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_FONT_WEIGHT_ADJUSTMENT
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to font weight. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute. This is
not a core resource configuration, but a higher-level value, so its
constant starts at the high bits.

<br />

Constant Value:

268435456
(0x10000000)


### CONFIG_GRAMMATICAL_GENDER

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_GRAMMATICAL_GENDER
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle the change to gender. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

32768
(0x00008000)


### CONFIG_KEYBOARD

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_KEYBOARD
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the keyboard type. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

16
(0x00000010)


### CONFIG_KEYBOARD_HIDDEN

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_KEYBOARD_HIDDEN
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the keyboard or navigation being hidden/exposed.
Note that inspite of the name, this applies to the changes to any
hidden states: keyboard or navigation.
Set from the `https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

32
(0x00000020)


### CONFIG_LAYOUT_DIRECTION

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_LAYOUT_DIRECTION
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle the change to layout direction. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

8192
(0x00002000)


### CONFIG_LOCALE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_LOCALE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the locale. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

4
(0x00000004)


### CONFIG_MCC

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_MCC
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the IMSI MCC. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

1
(0x00000001)


### CONFIG_MNC

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_MNC
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the IMSI MNC. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

2
(0x00000002)


### CONFIG_NAVIGATION

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_NAVIGATION
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the navigation type. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

64
(0x00000040)


### CONFIG_ORIENTATION

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_ORIENTATION
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the screen orientation. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

128
(0x00000080)


### CONFIG_RESOURCES_UNUSED

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_RESOURCES_UNUSED
```

<br />

This is probably not the constant you want, the resources compiler supports a less
dangerous version of it, 'allKnown', that only suppresses all currently existing
configuration change restarts depending on your target SDK rather than whatever the latest
SDK supports, allowing the application to work with resources on future Platform versions.

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity doesn't use Android
Resources at all and doesn't need to be restarted on any configuration changes. This bit
disables all restarts for configuration dimensions available in the current target SDK as
well as dimensions introduced in future SDKs. Use it only if the activity doesn't need
anything from its resources, and doesn't depend on any libraries that may provide resources
and need to respond to configuration changes. When set,
`https://developer.android.com/reference/android/app/Activity#onConfigurationChanged(android.content.res.Configuration)` will be called instead of a restart,
and it\\u2019s up to the implementation to ensure that no stale resource values remain loaded
anywhere in the code.

This overrides all other bits, and this is recommended to be used individually.

This is not a core resource configuration, but a higher-level value, so its constant
starts at the high bits.

<br />

Constant Value:

134217728
(0x08000000)


### CONFIG_SCREEN_LAYOUT

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_SCREEN_LAYOUT
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the screen layout. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

256
(0x00000100)


### CONFIG_SCREEN_SIZE

Added in [API level 13](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_SCREEN_SIZE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle the screen size. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute. This will be
set by default for applications that target an earlier version
than `https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB_MR2`...
**however** , you will not see the bit set here becomes some
applications incorrectly compare `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` against
an absolute value rather than correctly masking out the bits
they are interested in. Please don't do that, thanks.

<br />

Constant Value:

1024
(0x00000400)


### CONFIG_SMALLEST_SCREEN_SIZE

Added in [API level 13](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_SMALLEST_SCREEN_SIZE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle the smallest screen size. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute. This will be
set by default for applications that target an earlier version
than `https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB_MR2`...
**however** , you will not see the bit set here becomes some
applications incorrectly compare `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` against
an absolute value rather than correctly masking out the bits
they are interested in. Please don't do that, thanks.

<br />

Constant Value:

2048
(0x00000800)


### CONFIG_TOUCHSCREEN

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_TOUCHSCREEN
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle changes to the touchscreen type. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

8
(0x00000008)


### CONFIG_UI_MODE

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CONFIG_UI_MODE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges` that indicates that the activity
can itself handle the ui mode. Set from the
`https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

Constant Value:

512
(0x00000200)


### DOCUMENT_LAUNCH_ALWAYS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DOCUMENT_LAUNCH_ALWAYS
```

Constant corresponding to `always` in
the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute.

<br />

Constant Value:

2
(0x00000002)


### DOCUMENT_LAUNCH_INTO_EXISTING

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DOCUMENT_LAUNCH_INTO_EXISTING
```

Constant corresponding to `intoExisting` in
the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute.

<br />

Constant Value:

1
(0x00000001)


### DOCUMENT_LAUNCH_NEVER

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DOCUMENT_LAUNCH_NEVER
```

Constant corresponding to `never` in
the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute.

<br />

Constant Value:

3
(0x00000003)


### DOCUMENT_LAUNCH_NONE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DOCUMENT_LAUNCH_NONE
```

Constant corresponding to `none` in
the `https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute.

<br />

Constant Value:

0
(0x00000000)


### FLAG_ALLOW_TASK_REPARENTING

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_ALLOW_TASK_REPARENTING
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` that indicates that the activity can be moved
between tasks based on its task affinity. Set from the
`https://developer.android.com/reference/android/R.attr#allowTaskReparenting` attribute.

<br />

Constant Value:

64
(0x00000040)


### FLAG_ALLOW_UNTRUSTED_ACTIVITY_EMBEDDING

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_ALLOW_UNTRUSTED_ACTIVITY_EMBEDDING
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: If set, indicates that the activity can be embedded by untrusted
hosts. In this case the interactions with and visibility of the embedded activity may be
limited. Set from the `https://developer.android.com/reference/android/R.attr#allowUntrustedActivityEmbedding` attribute.

<br />

Constant Value:

268435456
(0x10000000)


### FLAG_ALWAYS_RETAIN_TASK_STATE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_ALWAYS_RETAIN_TASK_STATE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the activity is the root
of a task, that task's stack should never be cleared when it is
relaunched from home. Set from the
`https://developer.android.com/reference/android/R.attr#alwaysRetainTaskState` attribute.

<br />

Constant Value:

8
(0x00000008)


### FLAG_AUTO_REMOVE_FROM_RECENTS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_AUTO_REMOVE_FROM_RECENTS
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that tasks started with this activity are to be
removed from the recent list of tasks when the last activity in the task is finished.
Corresponds to `https://developer.android.com/reference/android/R.attr#autoRemoveFromRecents`

<br />

Constant Value:

8192
(0x00002000)


### FLAG_CLEAR_TASK_ON_LAUNCH

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_CLEAR_TASK_ON_LAUNCH
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the activity is the root
of a task, that task's stack should be cleared each time the user
re-launches it from home. As a result, the user will always
return to the original activity at the top of the task.
This flag only applies to activities that
are used to start the root of a new task. Set from the
`https://developer.android.com/reference/android/R.attr#clearTaskOnLaunch` attribute.

<br />

Constant Value:

4
(0x00000004)


### FLAG_ENABLE_VR_MODE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_ENABLE_VR_MODE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that this activity should be run with VR mode enabled.

<br />

**See also:**

- `https://developer.android.com/reference/android/app/Activity#setVrModeEnabled(boolean,%20android.content.ComponentName)`

Constant Value:

32768
(0x00008000)


### FLAG_EXCLUDE_FROM_RECENTS

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_EXCLUDE_FROM_RECENTS
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` that indicates that the activity should not
appear in the list of recently launched activities. Set from the
`https://developer.android.com/reference/android/R.attr#excludeFromRecents` attribute.

<br />

Constant Value:

32
(0x00000020)


### FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when a request to close system
windows happens, this activity is finished.
Set from the
`https://developer.android.com/reference/android/R.attr#finishOnCloseSystemDialogs` attribute.

<br />

Constant Value:

256
(0x00000100)


### FLAG_FINISH_ON_TASK_LAUNCH

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_FINISH_ON_TASK_LAUNCH
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the activity's task is
relaunched from home, this activity should be finished.
Set from the
`https://developer.android.com/reference/android/R.attr#finishOnTaskLaunch` attribute.

<br />

Constant Value:

2
(0x00000002)


### FLAG_HARDWARE_ACCELERATED

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_HARDWARE_ACCELERATED
```

Value for `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: true when the application's rendering should
be hardware accelerated.

<br />

Constant Value:

512
(0x00000200)


### FLAG_IMMERSIVE

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_IMMERSIVE
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` corresponding to an immersive activity
that wishes not to be interrupted by notifications.
Applications that hide the system notification bar with
`https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_FULLSCREEN`
may still be interrupted by high-priority notifications; for example, an
incoming phone call may use
`https://developer.android.com/reference/android/app/Notification#fullScreenIntent`
to present a full-screen in-call activity to the user, pausing the
current activity as a side-effect. An activity with
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_IMMERSIVE` set, however, will not be interrupted; the
notification may be shown in some other way (such as a small floating
"toast" window).

Note that this flag will always reflect the Activity's
`android:immersive` manifest definition, even if the Activity's
immersive state is changed at runtime via
`https://developer.android.com/reference/android/app/Activity#setImmersive(boolean)`.

<br />

**See also:**

- `https://developer.android.com/reference/android/app/Notification#FLAG_HIGH_PRIORITY`
- `https://developer.android.com/reference/android/app/Activity#setImmersive(boolean)`

Constant Value:

2048
(0x00000800)


### FLAG_MULTIPROCESS

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_MULTIPROCESS
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating whether this activity is able to
run in multiple processes. If
true, the system may instantiate it in the some process as the
process starting it in order to conserve resources. If false, the
default, it always runs in `https://developer.android.com/reference/android/content/pm/ComponentInfo#processName`. Set from the
`https://developer.android.com/reference/android/R.attr#multiprocess` attribute.

<br />

Constant Value:

1
(0x00000001)


### FLAG_NO_HISTORY

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_NO_HISTORY
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that, when the user navigates away
from an activity, it should be finished.
Set from the
`https://developer.android.com/reference/android/R.attr#noHistory` attribute.

<br />

Constant Value:

128
(0x00000080)


### FLAG_PREFER_MINIMAL_POST_PROCESSING

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_PREFER_MINIMAL_POST_PROCESSING
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating whether the display should preferably be switched to a
minimal post processing mode.
See `https://developer.android.com/reference/android/R.attr#preferMinimalPostProcessing`

<br />

Constant Value:

33554432
(0x02000000)


### FLAG_RELINQUISH_TASK_IDENTITY

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_RELINQUISH_TASK_IDENTITY
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: If set, a task rooted at this activity will have its
baseIntent replaced by the activity immediately above this. Each activity may further
relinquish its identity to the activity above it using this flag. Set from the
`https://developer.android.com/reference/android/R.attr#relinquishTaskIdentity` attribute.

<br />

Constant Value:

4096
(0x00001000)


### FLAG_RESUME_WHILE_PAUSING

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_RESUME_WHILE_PAUSING
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that this activity can start is creation/resume
while the previous activity is still pausing. Corresponds to
`https://developer.android.com/reference/android/R.attr#resumeWhilePausing`

<br />

Constant Value:

16384
(0x00004000)


### FLAG_SINGLE_USER

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_SINGLE_USER
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags`: If set, a single instance of the receiver will
run for all users on the device. Set from the
`https://developer.android.com/reference/android/R.attr#singleUser` attribute. Note that this flag is
only relevant for ActivityInfo structures that are describing receiver
components; it is not applied to activities.

<br />

Constant Value:

1073741824
(0x40000000)


### FLAG_STATE_NOT_NEEDED

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_STATE_NOT_NEEDED
```

Bit in `https://developer.android.com/reference/android/content/pm/ActivityInfo#flags` indicating that the activity's state
is not required to be saved, so that if there is a failure the
activity will not be removed from the activity stack. Set from the
`https://developer.android.com/reference/android/R.attr#stateNotNeeded` attribute.

<br />

Constant Value:

16
(0x00000010)


### LAUNCH_MULTIPLE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int LAUNCH_MULTIPLE
```

Constant corresponding to `standard` in
the `https://developer.android.com/reference/android/R.attr#launchMode` attribute.

<br />

Constant Value:

0
(0x00000000)


### LAUNCH_SINGLE_INSTANCE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int LAUNCH_SINGLE_INSTANCE
```

Constant corresponding to `singleInstance` in
the `https://developer.android.com/reference/android/R.attr#launchMode` attribute.

<br />

Constant Value:

3
(0x00000003)


### LAUNCH_SINGLE_INSTANCE_PER_TASK

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int LAUNCH_SINGLE_INSTANCE_PER_TASK
```

Constant corresponding to `singleInstancePerTask` in
the `https://developer.android.com/reference/android/R.attr#launchMode` attribute.

<br />

Constant Value:

4
(0x00000004)


### LAUNCH_SINGLE_TASK

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int LAUNCH_SINGLE_TASK
```

Constant corresponding to `singleTask` in
the `https://developer.android.com/reference/android/R.attr#launchMode` attribute.

<br />

Constant Value:

2
(0x00000002)


### LAUNCH_SINGLE_TOP

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int LAUNCH_SINGLE_TOP
```

Constant corresponding to `singleTop` in
the `https://developer.android.com/reference/android/R.attr#launchMode` attribute.

<br />

Constant Value:

1
(0x00000001)


### PERSIST_ACROSS_REBOOTS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PERSIST_ACROSS_REBOOTS
```

Constant corresponding to `persistAcrossReboots` in
the `https://developer.android.com/reference/android/R.attr#persistableMode` attribute.

<br />

Constant Value:

2
(0x00000002)


### PERSIST_NEVER

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PERSIST_NEVER
```

Constant corresponding to `doNotPersist` in
the `https://developer.android.com/reference/android/R.attr#persistableMode` attribute.

<br />

Constant Value:

1
(0x00000001)


### PERSIST_ROOT_ONLY

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PERSIST_ROOT_ONLY
```

Constant corresponding to `persistRootOnly` in
the `https://developer.android.com/reference/android/R.attr#persistableMode` attribute.

<br />

Constant Value:

0
(0x00000000)


### SCREEN_ORIENTATION_BEHIND

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_BEHIND
```

Constant corresponding to `behind` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

3
(0x00000003)


### SCREEN_ORIENTATION_FULL_SENSOR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_FULL_SENSOR
```

Constant corresponding to `fullSensor` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

10
(0x0000000a)


### SCREEN_ORIENTATION_FULL_USER

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_FULL_USER
```

Constant corresponding to `fullUser` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

13
(0x0000000d)


### SCREEN_ORIENTATION_LANDSCAPE

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_LANDSCAPE
```

Constant corresponding to `landscape` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

0
(0x00000000)


### SCREEN_ORIENTATION_LOCKED

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_LOCKED
```

Constant corresponding to `locked` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

14
(0x0000000e)


### SCREEN_ORIENTATION_NOSENSOR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_NOSENSOR
```

Constant corresponding to `nosensor` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

5
(0x00000005)


### SCREEN_ORIENTATION_PORTRAIT

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_PORTRAIT
```

Constant corresponding to `portrait` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

1
(0x00000001)


### SCREEN_ORIENTATION_REVERSE_LANDSCAPE

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_REVERSE_LANDSCAPE
```

Constant corresponding to `reverseLandscape` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

8
(0x00000008)


### SCREEN_ORIENTATION_REVERSE_PORTRAIT

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_REVERSE_PORTRAIT
```

Constant corresponding to `reversePortrait` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

9
(0x00000009)


### SCREEN_ORIENTATION_SENSOR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_SENSOR
```

Constant corresponding to `sensor` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

4
(0x00000004)


### SCREEN_ORIENTATION_SENSOR_LANDSCAPE

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_SENSOR_LANDSCAPE
```

Constant corresponding to `sensorLandscape` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

6
(0x00000006)


### SCREEN_ORIENTATION_SENSOR_PORTRAIT

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_SENSOR_PORTRAIT
```

Constant corresponding to `sensorPortrait` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

7
(0x00000007)


### SCREEN_ORIENTATION_UNSPECIFIED

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_UNSPECIFIED
```

Constant corresponding to `unspecified` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

-1
(0xffffffff)


### SCREEN_ORIENTATION_USER

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_USER
```

Constant corresponding to `user` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

2
(0x00000002)


### SCREEN_ORIENTATION_USER_LANDSCAPE

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_USER_LANDSCAPE
```

Constant corresponding to `userLandscape` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

11
(0x0000000b)


### SCREEN_ORIENTATION_USER_PORTRAIT

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SCREEN_ORIENTATION_USER_PORTRAIT
```

Constant corresponding to `userPortrait` in
the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute.

<br />

Constant Value:

12
(0x0000000c)


### UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW
```

Flag for use with `https://developer.android.com/reference/android/content/pm/ActivityInfo#uiOptions`.
Indicates that the action bar should put all action items in a separate bar when
the screen is narrow.

This value corresponds to "splitActionBarWhenNarrow" for the `https://developer.android.com/reference/android/content/pm/ActivityInfo#uiOptions` XML
attribute.

<br />

Constant Value:

1
(0x00000001)


## Fields

### CREATOR

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<ActivityInfo> CREATOR
```

<br />

<br />

### colorMode

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int colorMode
```

The color mode requested by this activity. The target display may not be
able to honor the request.


Value is one of the following:

- `https://developer.android.com/reference/android/content/pm/ActivityInfo#COLOR_MODE_DEFAULT`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#COLOR_MODE_HDR`

### configChanges

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int configChanges
```

Bit mask of kinds of configuration changes that this activity
can handle itself (without being restarted by the system).
Contains any combination of `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_FONT_SCALE`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_MCC`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_MNC`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_LOCALE`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_TOUCHSCREEN`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_KEYBOARD`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_NAVIGATION`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_ORIENTATION`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_SCREEN_LAYOUT`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_DENSITY`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_LAYOUT_DIRECTION`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_COLOR_MODE`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_GRAMMATICAL_GENDER`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_ASSETS_PATHS`, and `https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_RESOURCES_UNUSED`.
Set from the `https://developer.android.com/reference/android/R.attr#configChanges` attribute.

<br />

### documentLaunchMode

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int documentLaunchMode
```

The document launch mode style requested by the activity. From the
`https://developer.android.com/reference/android/R.attr#documentLaunchMode` attribute, one of
`https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_NONE`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_INTO_EXISTING`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#DOCUMENT_LAUNCH_ALWAYS`.

Modes DOCUMENT_LAUNCH_ALWAYS
and DOCUMENT_LAUNCH_INTO_EXISTING are equivalent to `https://developer.android.com/reference/android/content/Intent#FLAG_ACTIVITY_NEW_DOCUMENT` with and without `https://developer.android.com/reference/android/content/Intent#FLAG_ACTIVITY_MULTIPLE_TASK` respectively.

<br />

### flags

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int flags
```

Options that have been set in the activity declaration in the
manifest.
These include:
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_MULTIPROCESS`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_FINISH_ON_TASK_LAUNCH`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_CLEAR_TASK_ON_LAUNCH`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ALWAYS_RETAIN_TASK_STATE`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_STATE_NOT_NEEDED`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_EXCLUDE_FROM_RECENTS`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ALLOW_TASK_REPARENTING`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_NO_HISTORY`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_HARDWARE_ACCELERATED`, `https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_SINGLE_USER`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#FLAG_ALLOW_UNTRUSTED_ACTIVITY_EMBEDDING`.

<br />

### launchMode

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int launchMode
```

The launch mode style requested by the activity. From the
`https://developer.android.com/reference/android/R.attr#launchMode` attribute.


Value is one of the following:

- `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_MULTIPLE`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_TOP`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_TASK`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_INSTANCE`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#LAUNCH_SINGLE_INSTANCE_PER_TASK`

### maxRecents

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int maxRecents
```

The maximum number of tasks rooted at this activity that can be in the recent task list.
Refer to `https://developer.android.com/reference/android/R.attr#maxRecents`.

<br />

### parentActivityName

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String parentActivityName
```

If defined, the activity named here is the logical parent of this activity.

<br />

### permission

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String permission
```

Optional name of a permission required to be able to access this
Activity. From the "permission" attribute.

<br />

### persistableMode

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int persistableMode
```

Value indicating how this activity is to be persisted across
reboots for restoring in the Recents list.
`https://developer.android.com/reference/android/R.attr#persistableMode`

<br />

### requiredDisplayCategory

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String requiredDisplayCategory
```

Specifies the required display category of the activity. Set from the
`https://developer.android.com/reference/android/R.attr#requiredDisplayCategory` attribute. Upon creation, a display can
specify which display categories it supports and one of the category must be present
in the `<activity>` element to allow this activity to run. The default value is
`null`, which indicates the activity does not have a required display category and
thus can only run on a display that didn't specify any display categories. Each activity
can only specify one required category but a display can support multiple display categories.


This field should be formatted as a Java-language-style free form string(for example,
com.google.automotive_entertainment), which may contain uppercase or lowercase letters ('A'
through 'Z'), numbers, and underscores ('_') but may only start with letters.

<br />

### screenOrientation

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int screenOrientation
```

The preferred screen orientation this activity would like to run in.
From the `https://developer.android.com/reference/android/R.attr#screenOrientation` attribute, one of
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_UNSPECIFIED`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_LANDSCAPE`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_PORTRAIT`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_BEHIND`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_NOSENSOR`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR_LANDSCAPE`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR_PORTRAIT`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_REVERSE_LANDSCAPE`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_REVERSE_PORTRAIT`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_FULL_SENSOR`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER_LANDSCAPE`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER_PORTRAIT`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_FULL_USER`,
`https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_LOCKED`,.


Value is one of the following:

- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_UNSPECIFIED`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_LANDSCAPE`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_PORTRAIT`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_BEHIND`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_NOSENSOR`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR_LANDSCAPE`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_SENSOR_PORTRAIT`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_REVERSE_LANDSCAPE`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_REVERSE_PORTRAIT`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_FULL_SENSOR`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER_LANDSCAPE`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_USER_PORTRAIT`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_FULL_USER`
- `https://developer.android.com/reference/android/content/pm/ActivityInfo#SCREEN_ORIENTATION_LOCKED`

### softInputMode

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int softInputMode
```

The desired soft input mode for this activity's main window.
Set from the `https://developer.android.com/reference/android/R.attr#windowSoftInputMode` attribute
in the activity's manifest. May be any of the same values allowed
for `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#softInputMode`. If 0 (unspecified),
the mode from the theme will be used.


Value is either `0` or a combination of the following:

- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_STATE_UNSPECIFIED`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_STATE_UNCHANGED`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_STATE_HIDDEN`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_STATE_ALWAYS_HIDDEN`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_STATE_VISIBLE`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_STATE_ALWAYS_VISIBLE`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_UNSPECIFIED`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_RESIZE`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_PAN`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_NOTHING`
- `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_IS_FORWARD_NAVIGATION`

### targetActivity

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String targetActivity
```

If this is an activity alias, this is the real activity class to run
for it. Otherwise, this is null.

<br />

### taskAffinity

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String taskAffinity
```

The affinity this activity has for another task in the system. The
string here is the name of the task, often the package name of the
overall package. If null, the activity has no affinity. Set from the
`https://developer.android.com/reference/android/R.attr#taskAffinity` attribute.

<br />

### theme

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int theme
```

A style resource identifier (in the package's resources) of this
activity's theme. From the "theme" attribute or, if not set, 0.

<br />

### uiOptions

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int uiOptions
```

The desired extra UI options for this activity and its main window.
Set from the `https://developer.android.com/reference/android/R.attr#uiOptions` attribute in the
activity's manifest.

<br />

### windowLayout

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ActivityInfo.WindowLayout windowLayout
```

Information about desired position and size of activity on the display when
it is first started.

<br />

## Public constructors

### ActivityInfo

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ActivityInfo ()
```

<br />

<br />

### ActivityInfo

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ActivityInfo (ActivityInfo orig)
```

<br />

<br />

| Parameters ||
|---|---|
| `orig` | `ActivityInfo` <br /> |

## Public methods

### describeContents

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### dump

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void dump (Printer pw, 
                String prefix)
```

<br />

<br />

| Parameters ||
|---|---|
| `pw` | `Printer` <br /> |
| `prefix` | `String` <br /> |

### getKnownActivityEmbeddingCerts

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Set<String> getKnownActivityEmbeddingCerts ()
```

Gets the trusted host certificate digests of apps that are allowed to embed this activity.
The digests are computed using the SHA-256 digest algorithm.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/R.attr#knownActivityEmbeddingCerts`

### getThemeResource

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final int getThemeResource ()
```

Return the theme resource identifier to use for this activity. If
the activity defines a theme, that is used; else, the application
theme is used.

<br />

| Returns ||
|---|---|
| `int` | The theme associated with this activity. <br /> |

### toString

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int parcelableFlags)
```

<br />

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel` <br /> |
| `parcelableFlags` | `int` <br /> |