AlertDialog.getCancelButton

int getCancelButton()

Returns the index of the cancel button.

Returns

the index of the cancel button, or -1