ApplicationStartInfo.LaunchModeSingleInstance Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.

The system creates the activity at the root of a new task or locates the activity on an existing task with the same affinity.

[Android.Runtime.Register("LAUNCH_MODE_SINGLE_INSTANCE", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.", true)]
public const Android.App.ApplicationStartInfoLaunchMode LaunchModeSingleInstance = 2;
[<Android.Runtime.Register("LAUNCH_MODE_SINGLE_INSTANCE", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.", true)>]
val mutable LaunchModeSingleInstance : Android.App.ApplicationStartInfoLaunchMode

Field Value

Value = 2

Implements

Attributes

Remarks

The system creates the activity at the root of a new task or locates the activity on an existing task with the same affinity. If an instance of the activity already exists and is at the root of the task, the system routes the intent to existing instance through a call to its onNewIntent() method, rather than creating a new one.

Java documentation for android.app.ApplicationStartInfo.LAUNCH_MODE_SINGLE_INSTANCE.

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