Android.App.Activity.StartActivityFromFragment Method
This is called when a Fragment in this activity calls its Fragment.StartActivity(Android.Content.Intent) or Fragment.StartActivityForResult(Android.Content.Intent, System.Int32) method.

Syntax

[Android.Runtime.Register("startActivityFromFragment", "(Landroid/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V", "GetStartActivityFromFragment_Landroid_app_Fragment_Landroid_content_Intent_ILandroid_os_Bundle_Handler")]
public virtual void StartActivityFromFragment (Fragment fragment, Android.Content.Intent intent, int requestCode, Android.OS.Bundle options)

See Also

Fragment.StartActivity(Android.Content.Intent)
Fragment.StartActivityForResult(Android.Content.Intent, System.Int32)

Parameters

fragment
The fragment making the call.
intent
The intent to start.
requestCode
Reply request code.
options
Additional options for how the Activity should be started. See Android.Content.Context.StartActivity(Android.Content.Intent, Android.OS.Bundle) for more details.

Exceptions

TypeReason
Android.Content.ActivityNotFoundException

Remarks

This is called when a Fragment in this activity calls its Fragment.StartActivity(Android.Content.Intent) or Fragment.StartActivityForResult(Android.Content.Intent, System.Int32) method.

This method throws Android.Content.ActivityNotFoundException if there was no Activity found to run the given Intent.

[Android Documentation]

Requirements

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