Activity.ShowDialog Activity.ShowDialog Method

Definition

Overloads

ShowDialog(Int32) ShowDialog(Int32)

Simple version of ShowDialog(Int32, Bundle) that does not take any arguments.

ShowDialog(Int32, Bundle) ShowDialog(Int32, Bundle)

Show a dialog managed by this activity.

ShowDialog(Int32) ShowDialog(Int32)

Warning

This API is now obsolete.

Simple version of ShowDialog(Int32, Bundle) that does not take any arguments.

[Android.Runtime.Register("showDialog", "(I)V", "")]
[System.Obsolete("deprecated")]
public void ShowDialog (int id);
member this.ShowDialog : int -> unit

Parameters

Remarks

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.

ShowDialog(Int32, Bundle) ShowDialog(Int32, Bundle)

Warning

This API is now obsolete.

Show a dialog managed by this activity.

[System.Obsolete("deprecated")]
[Android.Runtime.Register("showDialog", "(ILandroid/os/Bundle;)Z", "", ApiSince=8)]
public bool ShowDialog (int id, Android.OS.Bundle args);
member this.ShowDialog : int * Android.OS.Bundle -> bool

Parameters

id
Int32 Int32

The id of the managed dialog.

args
Bundle Bundle

Arguments to pass through to the dialog. These will be saved and restored for you. Note that if the dialog is already created, OnCreateDialog(Int32, Bundle) will not be called with the new arguments but M:Android.App.Activity.OnPrepareDialog(System.Int32,Android.App.Dialog,Android.App.Dialog) will be. If you need to rebuild the dialog, call RemoveDialog(Int32) first.

Returns

Remarks

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.

See also

Applies to