Android: AlertDialog - User click somewhere else -


this question has answer here:

i have alert-dialog 2 buttons( yes/no ) if user click yes or no alert dialog behave normal , on-click method, if user click or touch somewhere outside of alert dialog disappear, , nothing happen, there way prevent dialog disappearing when user clicked somewhere else???

prevent dismiss dialog box on outside touch use this

 dialog.setcanceledontouchoutside(false); 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -