Best code examples for Android AlertDialog.Builder class (android.app.AlertDialog.Builder)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android AlertDialog.Builder class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Examples for other Android AlertDialog.Builder methods:
Related Android AlertDialog.Builder Questions & Answers:
Other Android AlertDialog.Builder Examples
0:	AlertDialog.Builder alertDialog = new AlertDialog.Builder(AlertDialogActivity.this);
1:	
2:			// Setting Dialog Title
-
0:	AlertDialog.Builder alertDialog = new AlertDialog.Builder(AlertDialogActivity.this);
1:	
2:			// Setting Dialog Title

Read More

0:	AlertDialog.Builder alertDialog = new AlertDialog.Builder(AlertDialogActivity.this);
1:	
2:					// Setting Dialog Title
-
0:	AlertDialog.Builder alertDialog = new AlertDialog.Builder(AlertDialogActivity.this);
1:	
2:					// Setting Dialog Title

Read More

0:	AlertDialog alertDialog = new AlertDialog.Builder(
1:							AlertDialogActivity.this).create();
2:

Read More

Methods
  • create
    Creates a AlertDialog with the arguments supplied to this builder.
  • setAdapter
    Set a list of items, which are supplied by the given ListAdapter, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
  • setIcon
    Set the Drawable to be used in the title.
  • setItems
    Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
  • setMultiChoiceItems
    Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
  • setNegativeButton
    Set a listener to be invoked when the negative button of the dialog is pressed.
  • setNeutralButton
    Set a listener to be invoked when the neutral button of the dialog is pressed.
  • setPositiveButton
    Set a listener to be invoked when the positive button of the dialog is pressed.
  • setSingleChoiceItems
    Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.
  • setTitle
    Set the title displayed in the Dialog.
  • setView
    Set a custom view to be the contents of the Dialog.
  • show
    Creates a AlertDialog with the arguments supplied to this builder and show()'s the dialog.