Aracılığıyla paylaş


Context.StartActivities Method

Definition

Overloads

StartActivities(Intent[])

Same as #startActivities(Intent[], Bundle) with no options specified.

StartActivities(Intent[], Bundle)

Launch multiple new activities.

StartActivities(Intent[])

Same as #startActivities(Intent[], Bundle) with no options specified.

[Android.Runtime.Register("startActivities", "([Landroid/content/Intent;)V", "GetStartActivities_arrayLandroid_content_Intent_Handler")]
public abstract void StartActivities (Android.Content.Intent[]? intents);
[<Android.Runtime.Register("startActivities", "([Landroid/content/Intent;)V", "GetStartActivities_arrayLandroid_content_Intent_Handler")>]
abstract member StartActivities : Android.Content.Intent[] -> unit

Parameters

intents
Intent[]

An array of Intents to be started.

Attributes

Exceptions

Remarks

Same as #startActivities(Intent[], Bundle) with no options specified.

Java documentation for android.content.Context.startActivities(android.content.Intent[]).

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.

See also

  • <xref:Android.Content.Context.StartActivities(Android.Content.Intent%5b%5d%2c+Android.OS.Bundle)>
  • <xref:Android.Content.PM.PackageManager.ResolveActivity(Android.Content.Intent%2c+Android.Content.PM.PackageInfoFlags)>

Applies to

StartActivities(Intent[], Bundle)

Launch multiple new activities.

[Android.Runtime.Register("startActivities", "([Landroid/content/Intent;Landroid/os/Bundle;)V", "GetStartActivities_arrayLandroid_content_Intent_Landroid_os_Bundle_Handler")]
public abstract void StartActivities (Android.Content.Intent[]? intents, Android.OS.Bundle? options);
[<Android.Runtime.Register("startActivities", "([Landroid/content/Intent;Landroid/os/Bundle;)V", "GetStartActivities_arrayLandroid_content_Intent_Landroid_os_Bundle_Handler")>]
abstract member StartActivities : Android.Content.Intent[] * Android.OS.Bundle -> unit

Parameters

intents
Intent[]

An array of Intents to be started.

options
Bundle

Additional options for how the Activity should be started. See android.content.Context#startActivity(Intent, Bundle) Context.startActivity(Intent, Bundle)} for more details.

Attributes

Exceptions

Remarks

Launch multiple new activities. This is generally the same as calling #startActivity(Intent) for the first Intent in the array, that activity during its creation calling #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 ActivityNotFoundException if there was no Activity found for <em>any</em> 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.

Java documentation for android.content.Context.startActivities(android.content.Intent[], android.os.Bundle).

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.

See also

  • StartActivities(Intent[])
  • <xref:Android.Content.PM.PackageManager.ResolveActivity(Android.Content.Intent%2c+Android.Content.PM.PackageInfoFlags)>

Applies to