Android.App.Activity.ShowDialog Method
Show a dialog managed by this activity.

Syntax

[Android.Runtime.Register("showDialog", "(ILandroid/os/Bundle;)Z", "")]
[System.Obsolete("deprecated")]
public bool ShowDialog (int id, Android.OS.Bundle args)

See Also

Dialog
Activity.OnCreateDialog(int, Android.OS.Bundle)
Activity.OnPrepareDialog(int, Android.App.Dialog, Android.App.Dialog)
Activity.DismissDialog(int)
Activity.RemoveDialog(int)

Parameters

id
The id of the managed dialog.
args
Arguments to pass through to the dialog. These will be saved and restored for you. Note that if the dialog is already created, Activity.OnCreateDialog(int, Android.OS.Bundle) will not be called with the new arguments but Activity.OnPrepareDialog(int, Android.App.Dialog, Android.App.Dialog) will be. If you need to rebuild the dialog, call Activity.RemoveDialog(int) first.

Returns

Documentation for this section has not yet been entered.

Remarks

Show a dialog managed by this activity. A call to Activity.OnCreateDialog(int, Android.OS.Bundle) will be made with the same id the first time this is called for a given id. From thereafter, the dialog will be automatically saved and restored. If you are targeting NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#HONEYCOMB or later, consider instead using a Android.App.DialogFragment instead.

Each time a dialog is shown, Activity.OnPrepareDialog(int, Android.App.Dialog, Android.App.Dialog) will be made to provide an opportunity to do any timely preparation.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8