Language

ActivityInfoFlags Enum

Definition

Enumerates values returned by several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ActivityInfoFlags
[<System.Flags>]
type ActivityInfoFlags = 
Inheritance
ActivityInfoFlags
Attributes

Fields

Name Value Description
None 0
Multiprocess 1

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

FinishOnTaskLaunch 2

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

Android reference for android.content.pm.ActivityInfo.FLAG_FINISH_ON_TASK_LAUNCH.

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

ClearTaskOnLaunch 4

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. 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 R.attr.clearTaskOnLaunch attribute.

Android reference for android.content.pm.ActivityInfo.FLAG_CLEAR_TASK_ON_LAUNCH.

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

AlwaysRetainTaskState 8

Bit in Flagsindicating that, when the activity is the root of a task, that task's stack should never be cleared when it is relaunched from home.

StateNotNeeded 16

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. Set from the R.attr.stateNotNeeded attribute.

Android reference for android.content.pm.ActivityInfo.FLAG_STATE_NOT_NEEDED.

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

ExcludeFromRecents 32

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

AllowTaskReparenting 64

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

NoHistory 128

Bit in flags indicating that, when the user navigates away from an activity, it should be finished. Set from the R.attr.noHistory attribute.

Android reference for android.content.pm.ActivityInfo.FLAG_NO_HISTORY.

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

FinishOnCloseSystemDialogs 256

Bit in flags indicating that, when a request to close system windows happens, this activity is finished. Set from the R.attr.finishOnCloseSystemDialogs attribute.

Android reference for android.content.pm.ActivityInfo.FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS.

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

HardwareAccelerated 512

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

Immersive 2048

Bit in flags corresponding to an immersive activity that wishes not to be interrupted by notifications. Applications that hide the system notification bar with WindowManager.LayoutParams.FLAG_FULLSCREEN may still be interrupted by high-priority notifications; for example, an incoming phone call may use fullScreenIntent to present a full-screen in-call activity to the user, pausing the current activity as a side-effect. An activity with 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 Activity.setImmersive(boolean).

Android reference for android.content.pm.ActivityInfo.FLAG_IMMERSIVE.

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

RelinquishTaskIdentity 4096

Bit in 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 R.attr.relinquishTaskIdentity attribute.

Android reference for android.content.pm.ActivityInfo.FLAG_RELINQUISH_TASK_IDENTITY.

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

AutoRemoveFromRecents 8192

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. Corresponds to R.attr.autoRemoveFromRecents

Android reference for android.content.pm.ActivityInfo.FLAG_AUTO_REMOVE_FROM_RECENTS.

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

ResumeWhilePausing 16384

Bit in flags indicating that this activity can start is creation/resume while the previous activity is still pausing. Corresponds to R.attr.resumeWhilePausing

Android reference for android.content.pm.ActivityInfo.FLAG_RESUME_WHILE_PAUSING.

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

EnableVrMode 32768

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

Android reference for android.content.pm.ActivityInfo.FLAG_ENABLE_VR_MODE.

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

PreferMinimalPostProcessing 33554432

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

Android reference for android.content.pm.ActivityInfo.FLAG_PREFER_MINIMAL_POST_PROCESSING.

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

AllowUntrustedActivityEmbedding 268435456

Bit in 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 R.attr.allowUntrustedActivityEmbedding attribute.

Android reference for android.content.pm.ActivityInfo.FLAG_ALLOW_UNTRUSTED_ACTIVITY_EMBEDDING.

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

SingleUser 1073741824

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

Remarks

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

Applies to