I used the answer from Cengiz Can from here
How to make a "do not ask me again" dialog pop-up box? Android
to set up a "never show again" dialog popup. It works but when the user clicks outside of the popup dialog, it closes.
How can I block the user from clicking outside in order that my popup does not get closed.
The dialog just should get closed when the user clicks "cancel" or "Ok" and not by clicking outside the box anywhere in the layout.
Is there a method to avoid this?
Thank you