Android.Resource.Attribute.LaunchMode Field
Specify how an activity should be launched.

Value: 16842781

Syntax

[Android.Runtime.Register("launchMode")]
public const int LaunchMode

Remarks

Specify how an activity should be launched. See the Tasks and Back Stack document for important information on how these options impact the behavior of your application.

If this attribute is not specified, standard launch mode will be used. Note that the particular launch behavior can be changed in some ways at runtime through the Android.Content.Intent flags Android.Content.ActivityFlags.SingleTop, Android.Content.ActivityFlags.NewTask, and Android.Content.ActivityFlags.MultipleTask.
ConstantValueDescription
standard0 The default mode, which will usually create a new instance of the activity when it is started, though this behavior may change with the introduction of other options such as Android.Content.ActivityFlags.NewTask.
singleTop1 If, when starting the activity, there is already an instance of the same activity class in the foreground that is interacting with the user, then re-use that instance. This existing instance will receive a call to Android.App.Activity.OnNewIntent(Android.Content.Intent) with the new Intent that is being started.
singleTask2 If, when starting the activity, there is already a task running that starts with this activity, then instead of starting a new instance the current task is brought to the front. The existing instance will receive a call to Android.App.Activity.OnNewIntent(Android.Content.Intent) with the new Intent that is being started, and with the Android.Content.ActivityFlags.BroughtToFront flag set. This is a superset of the singleTop mode, where if there is already an instance of the activity being started at the top of the stack, it will receive the Intent as described there (without the FLAG_ACTIVITY_BROUGHT_TO_FRONT flag set). See the Tasks and Back Stack document for more details about tasks.
singleInstance3 Only allow one instance of this activity to ever be running. This activity gets a unique task with only itself running in it; if it is ever launched again with the same Intent, then that task will be brought forward and its Android.App.Activity.OnNewIntent(Android.Content.Intent) method called. If this activity tries to start a new activity, that new activity will be launched in a separate task. See the Tasks and Back Stack document for more details about tasks.

Must be one of the following constant values.

[Android Documentation]

Requirements

Namespace: Android
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1