Activity.StartNextMatchingActivity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| StartNextMatchingActivity(Intent) |
Same as calling startNextMatchingActivity(Intent,Bundle) with no options. |
| StartNextMatchingActivity(Intent, Bundle) |
Special version of starting an activity, for use when you are replacing other activity components. |
StartNextMatchingActivity(Intent)
Same as calling startNextMatchingActivity(Intent,Bundle) with no options.
[Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Handler")]
public virtual bool StartNextMatchingActivity(Android.Content.Intent intent);
[<Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Handler")>]
abstract member StartNextMatchingActivity : Android.Content.Intent -> bool
override this.StartNextMatchingActivity : Android.Content.Intent -> bool
Parameters
- intent
- Intent
Intent: The intent to dispatch to the next activity. For correct behavior, this must be the same as the Intent that started your own activity; the only changes you can make are to the extras inside of it. This value cannot be null.
Returns
- Attributes
Remarks
Same as calling startNextMatchingActivity(Intent,Bundle) with no options.
Android reference for android.app.Activity.startNextMatchingActivity.
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
StartNextMatchingActivity(Intent, Bundle)
Special version of starting an activity, for use when you are replacing other activity components.
[Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler")]
public virtual bool StartNextMatchingActivity(Android.Content.Intent intent, Android.OS.Bundle? options);
[<Android.Runtime.Register("startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z", "GetStartNextMatchingActivity_Landroid_content_Intent_Landroid_os_Bundle_Handler")>]
abstract member StartNextMatchingActivity : Android.Content.Intent * Android.OS.Bundle -> bool
override this.StartNextMatchingActivity : Android.Content.Intent * Android.OS.Bundle -> bool
Parameters
- intent
- Intent
Intent: The intent to dispatch to the next activity. For correct behavior, this must be the same as the Intent that started your own activity; the only changes you can make are to the extras inside of it. This value cannot be null.
- options
- Bundle
Bundle: Additional options for how the Activity should be started. See android.content.Context.startActivity(Intent,Bundle) Context.startActivity(Intent, Bundle)} for more details. This value may be null.
Returns
- Attributes
Remarks
Special version of starting an activity, for use when you are replacing other activity components. You can use this to hand the Intent off to the next Activity that can handle it. You typically call this in onCreate(Bundle) with the Intent returned by getIntent(). Note: For security reasons, the caller identity propagated to the next activity will reflect this intermediary app's identity unless it shares the same UID as the original caller. The receiving activity should validate the immediate caller rather than assuming the original intent sender is preserved.
Android reference for android.app.Activity.startNextMatchingActivity.
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.