AlertDialog.getDefaultButton

int getDefaultButton()

Returns the index of the default button.

Returns

the index of the default button, or -1