Android.App.PendingIntent.GetActivity Method
Retrieve a PendingIntent that will start a new activity, like calling Android.Content.Context.StartActivity(Android.Content.Intent).

Syntax

[Android.Runtime.Register("getActivity", "(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;", "")]
public static PendingIntent GetActivity (Android.Content.Context context, int requestCode, Android.Content.Intent intent, [Android.Runtime.GeneratedEnum] PendingIntentFlags flags)

Parameters

context
The Context in which this PendingIntent should start the activity.
requestCode
Private request code for the sender
intent
Intent of the activity to be launched.
flags
May be PendingIntent.FLAG_ONE_SHOT, PendingIntent.FLAG_NO_CREATE, PendingIntent.FLAG_CANCEL_CURRENT, PendingIntent.FLAG_UPDATE_CURRENT, or any of the flags as supported by Android.Content.Intent.FillIn(Android.Content.Intent, Android.Content.FillInFlags) to control which unspecified parts of the intent that can be supplied when the actual send happens.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve a PendingIntent that will start a new activity, like calling Android.Content.Context.StartActivity(Android.Content.Intent). Note that the activity will be started outside of the context of an existing activity, so you must use the Android.Content.Intent.FLAG_ACTIVITY_NEW_TASK launch flag in the Intent.

For security reasons, the Android.Content.Intent you supply here should almost always be an explicit intent, that is specify an explicit component to be delivered to through Android.Content.Intent.setClass(android.content.Context, java.lang.Class<?>)

[Android Documentation]

Requirements

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