ActivityFlags Enum

Definition

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

This enumeration supports a bitwise combination of its member values.

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

Fields

BroughtToFront 4194304
ClearTask 32768
ClearTop 67108864
ClearWhenTaskReset 524288
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.

DirectBootAuto 256
ExcludeFromRecents 8388608

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

ExcludeStoppedPackages 16

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

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 4

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

GrantPersistableUriPermission 64
GrantPrefixUriPermission 128
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 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 32

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

LaunchAdjacent 4096
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).

MatchExternal 2048
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 524288
NewTask 268435456
NoAnimation 65536
NoHistory 1073741824

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

NoUserAction 262144
PreviousIsTop 16777216
ReceiverForeground 268435456

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

ReceiverNoAbort 134217728
ReceiverRegisteredOnly 1073741824

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

ReceiverReplacePending 536870912
ReceiverVisibleToInstantApps 2097152
ReorderToFront 131072
RequireDefault 512
RequireNonBrowser 1024
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 8192
SingleTop 536870912

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

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