My question is quite simple, but I'm not finding something I can use.
In my android project, I check the GPS connection of the user's device, and if it is not active, I ask for a dialog box to be activated, with two buttons, cancel and settings.
The button events are correct, but how do you know if the user, instead of clicking on some of the buttons, click outside of alertDialog, that is, on any screen space?