prevent dialog from closing

To prevent dialog box from getting dismissed on back key pressed use this

dialog.setCancelable(false);

And to prevent dialog box from getting dismissed on outside touch use this

dialog.setCanceledOnTouchOutside(false);

 

posted @ 2018-08-15 10:13  树杈上的猴子  阅读(113)  评论(0编辑  收藏  举报