Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ByebyeDialogFragment extends DialogFragment {
- @Override
- public Dialog onCreateDialog(Bundle savedInstanceState) {
- // Use the Builder class for convenient dialog construction
- AlertDialog.Builder builderout = new AlertDialog.Builder(getActivity());
- builderout.setMessage(R.string.exitTimer)
- .setPositiveButton(R.string.Yes, new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id)
- { finish();}
- });
- builderout.setNegativeButton(R.string.No, new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- }
- });
- return builderout.create();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement