Answer the question
In order to leave comments, you need to log in
How can I make the dialog box close only when the button is clicked?
I want it to be possible to close only by the button, but not by clicking on the background
Answer the question
In order to leave comments, you need to log in
dialog.setCancelable(false);
PS So that the dialog does not close when changing the configuration, it is better to use DialogFragment
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question