Android.Test.Mock.MockContext.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 override void StartActivities (Android.Content.Intent[] intents, Android.OS.Bundle options)

Parameters

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

Remarks

Launch multiple new activities. This is generally the same as calling Android.Content.Context.StartActivity(Android.Content.Intent) for the first Intent in the array, that activity during its creation calling Android.Content.Context.StartActivity(Android.Content.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.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16