My question is this:
Is there any way to make an AlertDialog always show (even if you tap outside the object or on the back button) until you click on the "accept" or "cancel" button?
My question is this:
Is there any way to make an AlertDialog always show (even if you tap outside the object or on the back button) until you click on the "accept" or "cancel" button?
To achieve that, you can use the following:
dialog.setCancelable(false);
When pressing back, do not close your dialog. - The opposite happens for a true value
dialog.setCanceledOnTouchOutside(false);
When you touch outside the dialog window, it does not close. - The opposite happens for a true value