I am using alert dialog with following properties.The problem is the dialog is dismiissed when i click back button or touch outside the dialog i don't want that.How can i solve this because setCancelable is not helping.
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage(R.string.check_internet);
builder.setCancelable(false);