Android.Appwidget.AppWidgetManager.ActionAppwidgetPick Field
Activity action to launch from your Android.Appwidget.AppWidgetHost activity when you want to pick an AppWidget to display.

Syntax

[Android.Runtime.Register("ACTION_APPWIDGET_PICK")]
public const string ActionAppwidgetPick

See Also

AppWidgetManager.ActionAppwidgetConfigure

Remarks

Activity action to launch from your Android.Appwidget.AppWidgetHost activity when you want to pick an AppWidget to display. The AppWidget picker activity will be launched.

You must supply the following extras:
AppWidgetManager.ExtraAppwidgetIdA newly allocated appWidgetId, which will be bound to the AppWidget provider once the user has selected one.

The system will respond with an onActivityResult call with the following extras in the intent:
AppWidgetManager.ExtraAppwidgetIdThe appWidgetId that you supplied in the original intent.

When you receive the result from the AppWidget pick activity, if the resultCode is Android.App.Activity.RESULT_OK, an AppWidget has been selected. You should then check the AppWidgetProviderInfo for the returned AppWidget, and if it has one, launch its configuration activity. If Android.App.Activity.RESULT_CANCELED is returned, you should delete the appWidgetId.

[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