Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public class ByebyeDialogFragment extends DialogFragment {
  2. @Override
  3. public Dialog onCreateDialog(Bundle savedInstanceState) {
  4. // Use the Builder class for convenient dialog construction
  5. AlertDialog.Builder builderout = new AlertDialog.Builder(getActivity());
  6. builderout.setMessage(R.string.exitTimer)
  7. .setPositiveButton(R.string.Yes, new DialogInterface.OnClickListener() {
  8. public void onClick(DialogInterface dialog, int id)
  9. { finish();}
  10. });
  11. builderout.setNegativeButton(R.string.No, new DialogInterface.OnClickListener() {
  12. public void onClick(DialogInterface dialog, int id) {
  13. }
  14. });
  15. return builderout.create();
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement