I'm preventing the dialog box from closing when I press the activity back button. When you press the back button, the dialog should exit without closing. Dialog.setCancelable(false); I tried this, but it makes the back button unstoppable when the dialog opens. I hope I was able to explain the question. Please help me.
Or close the dialog at the same time and exit Activity?