Android's Alertdialog detailed
Alertdialog's construction method is all protected, so it is not possible to create a alertdialog directly from the new Alertdialog. To create a alertdialog, use the Create () method in the Alertdialog.builder.
There are several ways to create a dialog box using Alertdialog.builder:
Settitle: Setting a title for a dialog box
SetIcon: Setting icons for dialog boxes
Setmessage: Setting Content for dialog boxes
Setview: Setting Custom styles for dialog boxes
Setitems: The Settings dialog box to display a
List, typically used when displaying several commands
Setmultichoiceitems: Used to set the dialog box to display a series of check boxes
Setneutralbutton: Normal button
Setpositivebutton: Add "Yes" button to the dialog box
Setnegativebutton: Dialog box Add "No" button
Create: Creating dialog box
Show: Show dialog box