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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -