I’m working on an app and at first startup I have two dialogs that I want the user to click ok/quit on(licensing, warnings etc) but currently they can be dismissed by clicking anywhere else on the screen.
I’m currently creating it like this;
AlertDialog.Builder dlg = new AlertDialog.Builder(this);
dlg.setTitle("Warning");
dlg.setMessage( ... );
dlg.setCancelable(false);
dlg.setPositiveButton("Ok", new DialogInterface.OnClickListener() { ... });
dlg.setNegativeButton("Quit", new DialogInterface.OnClickListener() { ... });
dlg.create().show();
How do force the user to exit the dialog through one of the buttons?
Nevermind, I found it. Changing it to