I have an alert dialog like this:
AlertDialog.Builder oyunaBaslaDialog = new AlertDialog.Builder(this);
oyunaBaslaDialog.setMessage(\"A Takımı\");
oy
Implement setOnKeyListener and catch the KeyEvent.KEYCODE_BACK. If you return true in this method, dialog will not close.
there is a method called,
bulder.setCancelable(
).by default this cancelable set 'true'.override it with,
bulder.setCancelable(false)
Use Dialog.setCancelable():
Sets whether this dialog is cancelable with the BACK key.
In your code this would be:
oyunaBaslaDialog.setCancelable(false);