AppWidgetManager.ActionAppwidgetConfigure Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sent when it is time to configure your AppWidget while it is being added to a host.
[Android.Runtime.Register("ACTION_APPWIDGET_CONFIGURE")]
public const string ActionAppwidgetConfigure;
[<Android.Runtime.Register("ACTION_APPWIDGET_CONFIGURE")>]
val mutable ActionAppwidgetConfigure : string
Field Value
- Attributes
Remarks
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 AppWidgetProviderInfo AppWidgetProviderInfo meta-data
.
The intent will contain the following extras: <table> <tr> <td>#EXTRA_APPWIDGET_ID
</td> <td>The appWidgetId to configure.</td> </tr> </table>
If you return android.app.Activity#RESULT_OK
using android.app.Activity#setResult Activity.setResult()
, the AppWidget will be added, and you will receive an #ACTION_APPWIDGET_UPDATE
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 #ACTION_APPWIDGET_DELETED
broadcast.
Java documentation for android.appwidget.AppWidgetManager.ACTION_APPWIDGET_CONFIGURE
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.