Sent when it is time to configure your AppWidget while it is being added to a host. This action is not sent as a broadcast to the AppWidget provider, but as a startActivity to the activity specified in the Android.Appwidget.AppWidgetProviderInfo.
The intent will contain the following extras:
AppWidgetManager.ExtraAppwidgetId | The appWidgetId to configure. |
If you return Android.App.Activity.RESULT_OK using Android.App.Activity.SetResult(Android.App.Result), the AppWidget will be added, and you will receive an AppWidgetManager.ActionAppwidgetUpdate broadcast for this AppWidget. If you return Android.App.Activity.RESULT_CANCELED, the host will cancel the add and not display this AppWidget, and you will receive a AppWidgetManager.ActionAppwidgetDeleted broadcast.