Activity.DismissDialog(Int32) Method

Definition

Caution

deprecated

This method was deprecated in API level 15.

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

Parameters

id
Int32

int: The id of the managed dialog.

Attributes

Remarks

This method was deprecated in API level 15. Use the new DialogFragment class with FragmentManager instead; this is also available on older platforms through the Android compatibility package.

Dismiss a dialog that was previously shown via showDialog(int).

See also:

Throws: IllegalArgumentException if the id was not previously shown via showDialog(int).

Android reference for android.app.Activity.dismissDialog.

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