Created
February 23, 2017 22:57
-
-
Save 7fe/c815f2bb0a1b60c2d30ceb5d2eba227d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Override protected void onResume(){ | |
super.onResume(); | |
AlertDialog.Builder builder1 = new AlertDialog.Builder(getApplicationContext()); | |
builder1.setMessage("Write your message here."); | |
builder1.setCancelable(true); | |
builder1.setPositiveButton( | |
"Yes", | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
dialog.cancel(); | |
} | |
}); | |
builder1.setNegativeButton( | |
"No", | |
new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int id) { | |
dialog.cancel(); | |
} | |
}); | |
AlertDialog alert11 = builder1.create(); | |
alert11.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment