how to avoid outside click of alerdialoge android

how to avoid outside click of alerdialoge android

Simply, alertDialog. setCancelable(false); prevent user from click outside of Dialog Box.

Source: codegrepper