Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

DialogInterface

android.content.DialogInterface
Known Indirect Subclasses

Class Overview

Summary

Nested Classes
interface DialogInterface.OnCancelListener Interface used to allow the creator of a dialog to run some code when the dialog is canceled. 
interface DialogInterface.OnClickListener Interface used to allow the creator of a dialog to run some code when an item on the dialog is clicked.. 
interface DialogInterface.OnDismissListener Interface used to allow the creator of a dialog to run some code when the dialog is dismissed. 
interface DialogInterface.OnKeyListener Interface definition for a callback to be invoked when a key event is dispatched to this dialog. 
interface DialogInterface.OnMultiChoiceClickListener Interface used to allow the creator of a dialog to run some code when an item in a multi-choice dialog is clicked. 
interface DialogInterface.OnShowListener Interface used to allow the creator of a dialog to run some code when the dialog is shown. 
Constants
int BUTTON1 This constant was deprecated in API level 3. Use BUTTON_POSITIVE
int BUTTON2 This constant was deprecated in API level 3. Use BUTTON_NEGATIVE
int BUTTON3 This constant was deprecated in API level 3. Use BUTTON_NEUTRAL
int BUTTON_NEGATIVE The identifier for the negative button.
int BUTTON_NEUTRAL The identifier for the neutral button.
int BUTTON_POSITIVE The identifier for the positive button.
Public Methods
abstract void cancel ()
abstract void dismiss ()

Constants

public static final int BUTTON1

Added in API level 1

This constant was deprecated in API level 3.
Use BUTTON_POSITIVE

Constant Value: -1 (0xffffffff)

public static final int BUTTON2

Added in API level 1

This constant was deprecated in API level 3.
Use BUTTON_NEGATIVE

Constant Value: -2 (0xfffffffe)

public static final int BUTTON3

Added in API level 1

This constant was deprecated in API level 3.
Use BUTTON_NEUTRAL

Constant Value: -3 (0xfffffffd)

public static final int BUTTON_NEGATIVE

Added in API level 3

The identifier for the negative button.

Constant Value: -2 (0xfffffffe)

public static final int BUTTON_NEUTRAL

Added in API level 3

The identifier for the neutral button.

Constant Value: -3 (0xfffffffd)

public static final int BUTTON_POSITIVE

Added in API level 3

The identifier for the positive button.

Constant Value: -1 (0xffffffff)

Public Methods

public abstract void cancel ()

Added in API level 1

public abstract void dismiss ()

Added in API level 1