Android.Content.Context.StartActivities Method
Launch multiple new activities.

Syntax

[Android.Runtime.Register("startActivities", "([Landroid/content/Intent;Landroid/os/Bundle;)V", "GetStartActivities_arrayLandroid_content_Intent_Landroid_os_Bundle_Handler")]
public abstract void StartActivities (Intent[] intents, Android.OS.Bundle options)

See Also

Context.StartActivities(Intent[])
Android.Content.PM.PackageManager.ResolveActivity(Intent, Android.Content.PM.PackageInfoFlags)

Parameters

intents
An array of Intents to be started.
options
Additional options for how the Activity should be started. See Context.StartActivity(Intent, Android.OS.Bundle) for more details.

Exceptions

TypeReason
Android.Content.ActivityNotFoundException 

Remarks

Launch multiple new activities. This is generally the same as calling Context.StartActivity(Intent) for the first Intent in the array, that activity during its creation calling Context.StartActivity(Intent) for the second entry, etc. Note that unlike that approach, generally none of the activities except the last in the array will be created at this point, but rather will be created when the user first visits them (due to pressing back from the activity on top).

This method throws Android.Content.ActivityNotFoundException if there was no Activity found for any given Intent. In this case the state of the activity stack is undefined (some Intents in the list may be on it, some not), so you probably want to avoid such situations.

[Android Documentation]

Requirements

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