I know you can override public void onCancel(DialogInterface dialog)
but that returns both if the user touches outside of the dialog or if they press the back button. I just want to get if the user presses the back button.
Asked
Active
Viewed 177 times
0

Tim Nuwin
- 2,775
- 2
- 29
- 63
1 Answers
0
try this
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
return new Dialog(getActivity(), getTheme()){
@Override
public void onBackPressed() {
}
};
}

Kou Peto
- 237
- 2
- 7