AppWidgetHost.StartAppWidgetConfigureActivityForResult Method

Definition

Starts an app widget provider configure activity for result on behalf of the caller.

[Android.Runtime.Register("startAppWidgetConfigureActivityForResult", "(Landroid/app/Activity;IIILandroid/os/Bundle;)V", "")]
public void StartAppWidgetConfigureActivityForResult (Android.App.Activity activity, int appWidgetId, Android.Content.ActivityFlags intentFlags, int requestCode, Android.OS.Bundle? options);
[<Android.Runtime.Register("startAppWidgetConfigureActivityForResult", "(Landroid/app/Activity;IIILandroid/os/Bundle;)V", "")>]
member this.StartAppWidgetConfigureActivityForResult : Android.App.Activity * int * Android.Content.ActivityFlags * int * Android.OS.Bundle -> unit

Parameters

activity
Activity

The activity from which to start the configure one.

appWidgetId
Int32

The bound app widget whose provider's config activity to start.

intentFlags
ActivityFlags

Optional intent flags.

requestCode
Int32

Optional request code retuned with the result.

options
Bundle
Attributes

Exceptions

If 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 Activity#onActivityResult(int, int, android.content.Intent) 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.

Java documentation for android.appwidget.AppWidgetHost.startAppWidgetConfigureActivityForResult(android.app.Activity, int, int, int, android.os.Bundle).

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.

Applies to

See also