ActivityFlags ActivityFlags Enum

Definition

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[System.Flags]
public enum ActivityFlags
type ActivityFlags = 
Inheritance
ActivityFlagsActivityFlags
Attributes

Fields

BroughtToFront BroughtToFront 4194304
ClearTask ClearTask 32768
ClearTop ClearTop 67108864
ClearWhenTaskReset ClearWhenTaskReset 524288
DebugLogResolution DebugLogResolution 8

A flag you can enable for debugging: when set, log messages will be printed during the resolution of this intent to show you what has been found to create the final resolved list.

ExcludeFromRecents ExcludeFromRecents 8388608

If set, the new activity is not kept in the list of recently launched activities.

ExcludeStoppedPackages ExcludeStoppedPackages 16

If set, this intent will not match any components in packages that are currently stopped.

ForwardResult ForwardResult 33554432

If set and this intent is being used to launch a new activity from an existing one, then the reply target of the existing activity will be transfered to the new activity.

FromBackground FromBackground 4

Can be set by the caller to indicate that this Intent is coming from a background operation, not from direct user interaction.

GrantPersistableUriPermission GrantPersistableUriPermission 64
GrantPrefixUriPermission GrantPrefixUriPermission 128
GrantReadUriPermission GrantReadUriPermission 1

If set, the recipient of this Intent will be granted permission to perform read operations on the Uri in the Intent's data and any URIs specified in its ClipData.

GrantWriteUriPermission GrantWriteUriPermission 2

If set, the recipient of this Intent will be granted permission to perform write operations on the Uri in the Intent's data and any URIs specified in its ClipData.

IncludeStoppedPackages IncludeStoppedPackages 32

If set, this intent will always match any components in packages that are currently stopped.

LaunchAdjacent LaunchAdjacent 4096
LaunchedFromHistory LaunchedFromHistory 1048576

This flag is not normally set by application code, but set for you by the system if this activity is being launched from history (longpress home key).

MultipleTask MultipleTask 134217728

Do not use this flag unless you are implementing your own top-level application launcher. NewTask always

Because the default system does not include graphical task management, you should not use this flag unless you provide some way for a user to return back to the tasks you have launched.

NewTask

See Tasks and Back Stack for more information about tasks.

NewDocument NewDocument 524288
NewTask NewTask 268435456
NoAnimation NoAnimation 65536
NoHistory NoHistory 1073741824

If set, the new activity is not kept in the history stack.

NoUserAction NoUserAction 262144
PreviousIsTop PreviousIsTop 16777216
ReceiverForeground ReceiverForeground 268435456

If set, when sending a broadcast the recipient is allowed to run at foreground priority, with a shorter timeout interval.

ReceiverNoAbort ReceiverNoAbort 134217728
ReceiverRegisteredOnly ReceiverRegisteredOnly 1073741824

If set, when sending a broadcast only registered receivers will be called -- no BroadcastReceiver components will be launched.

ReceiverReplacePending ReceiverReplacePending 536870912
ReceiverVisibleToInstantApps ReceiverVisibleToInstantApps 2097152
ReorderToFront ReorderToFront 131072
ResetTaskIfNeeded ResetTaskIfNeeded 2097152

If set, and this activity is either being started in a new task or bringing to the top an existing task, then it will be launched as the front door of the task.

RetainInRecents RetainInRecents 8192
SingleTop SingleTop 536870912

If set, the activity will not be launched if it is already running at the top of the history stack.

TaskOnHome TaskOnHome 16384

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