Android.Appwidget.AppWidgetHost.StartAppWidgetConfigureActivityForResult Method
Starts an app widget provider configure activity for result on behalf of the caller.

Syntax

[Android.Runtime.Register("startAppWidgetConfigureActivityForResult", "(Landroid/app/Activity;IIILandroid/os/Bundle;)V", "")]
public void StartAppWidgetConfigureActivityForResult (Android.App.Activity activity, int appWidgetId, [Android.Runtime.GeneratedEnum] Android.Content.ActivityFlags intentFlags, int requestCode, Android.OS.Bundle options)

See Also

AppWidgetProviderInfo.Profile

Parameters

activity
The activity from which to start the configure one.
appWidgetId
The bound app widget whose provider's config activity to start.
intentFlags
Optional intent flags.
requestCode
Optional request code retuned with the result.
options
Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Content.ActivityNotFoundExceptionIf the activity is not found.

Remarks

Starts an app widget provider configure activity for result on behalf of the caller. Use this method if the provider is in another profile as you are not allowed to start an activity in another profile. You can optionally provide a request code that is returned in Android.App.Activity.OnActivityResult(int, Android.App.Result, Android.App.Result) and an options bundle to be passed to the started activity.

Note that the provided app widget has to be bound for this method to work.

[Android Documentation]

Requirements

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