title: Android AlertDialog setOnCanceledOnTouchOutside
body: <p>I create <code>AlertDialog</code>, I set <code>setOnCanceledOnTouchOutside</code> and <code>setCancelable</code> params, but then I click outside dialog it hides. Maybe someone can help me?</p>
  
  <pre><code>dialog = new AlertDialog.Builder(getContext()).setView(table).setTitle(R.string.order_start_title)
  .setNegativeButton(R.string.dialog_cancel, new DialogInterface.OnClickListener() {
  
      public void onClick(DialogInterface dialog, int whichButton) {
          onOrderStartCancel(context);
      }
  }).setPositiveButton(R.string.dialog_start_order, new DialogInterface.OnClickListener() {
  
      public void onClick(DialogInterface dialog, int whichButton) {
          onOrderStart(context, goodsTypeId, goodType);
      }
  }).create();
  dialog.setCanceledOnTouchOutside(true);
  dialog.setCancelable(true);
  dialog.show();
  </code></pre>