AlertDialog.Builder的setCancelable
Sets whether the dialog is cancelable or not default is true.
设置为false,按返回键不能退出。默认为true。
安卓弹出对话框,禁用返回键使其消失
原文:http://www.cnblogs.com/lucky-star-star/p/4046724.html