Added in API level 1

ActivityInfo


open class ActivityInfo : ComponentInfo, Parcelable
kotlin.Any
   ↳ android.content.pm.PackageItemInfo
   ↳ android.content.pm.ComponentInfo
   ↳ android.content.pm.ActivityInfo

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

Contains information about position and size of the activity on the display.

Constants
static Int

Value for colorMode indicating that the activity should use the default color mode (sRGB, low dynamic range).

static Int

Value of colorMode indicating that the activity should use a high dynamic range if the presentation display supports it.

static Int

Value of colorMode indicating that the activity should use a wide color gamut if the presentation display supports it.

static Int

Bit in configChanges that indicates that the activity can itself handle asset path changes.

static Int

Bit in configChanges that indicates that the activity can itself handle the change to the display color gamut or dynamic range.

static Int

Bit in configChanges that indicates that the activity can itself handle density changes.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the font scaling factor.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to font weight.

static Int

Bit in configChanges that indicates that the activity can itself handle the change to gender.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the keyboard type.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the keyboard or navigation being hidden/exposed.

static Int

Bit in configChanges that indicates that the activity can itself handle the change to layout direction.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the locale.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the IMSI MCC.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the IMSI MNC.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the navigation type.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the screen orientation.

static Int

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.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the screen layout.

static Int

Bit in configChanges that indicates that the activity can itself handle the screen size.

static Int

Bit in configChanges that indicates that the activity can itself handle the smallest screen size.

static Int

Bit in configChanges that indicates that the activity can itself handle changes to the touchscreen type.

static Int

Bit in configChanges that indicates that the activity can itself handle the ui mode.

static Int

Constant corresponding to always in the android.R.attr#documentLaunchMode attribute.

static Int

Constant corresponding to intoExisting in the android.R.attr#documentLaunchMode attribute.

static Int

Constant corresponding to never in the android.R.attr#documentLaunchMode attribute.

static Int

Constant corresponding to none in the android.R.attr#documentLaunchMode attribute.

static Int

Bit in flags that indicates that the activity can be moved between tasks based on its task affinity.

static Int

Bit in flags: If set, indicates that the activity can be embedded by untrusted hosts.

static Int

Bit in 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.

static Int

Bit in 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.

static Int

Bit in 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.

static Int

Bit in flags indicating that this activity should be run with VR mode enabled.

static Int

Bit in flags that indicates that the activity should not appear in the list of recently launched activities.

static Int

Bit in flags indicating that, when a request to close system windows happens, this activity is finished.

static Int

Bit in flags indicating that, when the activity's task is relaunched from home, this activity should be finished.

static Int

Value for flags: true when the application's rendering should be hardware accelerated.

static Int

Bit in flags corresponding to an immersive activity that wishes not to be interrupted by notifications.

static Int

Bit in flags indicating whether this activity is able to run in multiple processes.

static Int

Bit in flags indicating that, when the user navigates away from an activity, it should be finished.

static Int

Bit in flags indicating whether the display should preferably be switched to a minimal post processing mode.

static Int

Bit in flags: If set, a task rooted at this activity will have its baseIntent replaced by the activity immediately above this.

static Int

Bit in flags indicating that this activity can start is creation/resume while the previous activity is still pausing.

static Int

Bit in flags: If set, a single instance of the receiver will run for all users on the device.

static Int

Bit in 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.

static Int

Constant corresponding to standard in the android.R.attr#launchMode attribute.

static Int

Constant corresponding to singleInstance in the android.R.attr#launchMode attribute.

static Int

Constant corresponding to singleInstancePerTask in the android.R.attr#launchMode attribute.

static Int

Constant corresponding to singleTask in the android.R.attr#launchMode attribute.

static Int

Constant corresponding to singleTop in the android.R.attr#launchMode attribute.

static Int

Constant corresponding to persistAcrossReboots in the android.R.attr#persistableMode attribute.

static Int

Constant corresponding to doNotPersist in the android.R.attr#persistableMode attribute.

static Int

Constant corresponding to persistRootOnly in the android.R.attr#persistableMode attribute.

static Int

Constant corresponding to behind in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to fullSensor in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to fullUser in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to landscape in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to locked in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to nosensor in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to portrait in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to reverseLandscape in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to reversePortrait in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to sensor in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to sensorLandscape in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to sensorPortrait in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to unspecified in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to user in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to userLandscape in the android.R.attr#screenOrientation attribute.

static Int

Constant corresponding to userPortrait in the android.R.attr#screenOrientation attribute.

static Int

Flag for use with uiOptions.

Inherited constants
Public constructors

Public methods
open Int

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

open Unit
dump(pw: Printer!, prefix: String!)

open MutableSet<String!>

Gets the trusted host certificate digests of apps that are allowed to embed this activity.

Int

Return the theme resource identifier to use for this activity.

open String

Returns a string representation of the object.

open Unit
writeToParcel(dest: Parcel, parcelableFlags: Int)

Inherited functions
Properties
static Parcelable.Creator<ActivityInfo!>

Int

The color mode requested by this activity.

Int

Bit mask of kinds of configuration changes that this activity can handle itself (without being restarted by the system).

Int

The document launch mode style requested by the activity.

Int

Options that have been set in the activity declaration in the manifest.

Int

The launch mode style requested by the activity.

Int

The maximum number of tasks rooted at this activity that can be in the recent task list.

String!

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

String!

Optional name of a permission required to be able to access this Activity.

Int

Value indicating how this activity is to be persisted across reboots for restoring in the Recents list.

String?

Specifies the required display category of the activity.

Int

The preferred screen orientation this activity would like to run in.

Int

The desired soft input mode for this activity's main window.

String!

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

String!

The affinity this activity has for another task in the system.

Int

A style resource identifier (in the package's resources) of this activity's theme.

Int

The desired extra UI options for this activity and its main window.

ActivityInfo.WindowLayout!

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

Inherited properties