/** Hide the cancel button */ @Override protected void onPrepareDialogBuilder(Builder builder) { super.onPrepareDialogBuilder(builder); builder.setNegativeButton(null,null); }