Created
April 16, 2013 15:47
-
-
Save mapreal19-snip/5397052 to your computer and use it in GitHub Desktop.
ANDROID: AlertDialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlertDialog.Builder alertDialog = new AlertDialog.Builder(this); | |
alertDialog.setTitle("New Location"); | |
alertDialog.setMessage("Is this the new location?"); | |
alertDialog.setPositiveButton ("Yes", new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int which) { | |
returnResult(); | |
} | |
}); | |
alertDialog.setNegativeButton("No", new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialogo1, int id) { | |
//Nothing | |
} | |
}); | |
alertDialog.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment