title: Disable background dim on ProgressDialog/AlertDialog in Android
body: <p>I use an AsyncTask with a ProgressDialog in it.
  This automatically causes a background dim of about 40%. I want to turn this dim off (0% dim), but what I tried, didn't work:</p>
  
  <pre><code>myLoadingDialog = new ProgressDialog(MainActivity.this.getApplicationContext());
  myLoadingDialog.setMessage("Loading...");
  myLoadingDialog.setIndeterminate(true);
  myLoadingDialog.setCancelable(false);
  WindowManager.LayoutParams lp = myLoadingDialog.getWindow().getAttributes();
  lp.dimAmount = 0.0f; 
  myLoadingDialog.show();
  </code></pre>
  
  <p>The problem with that dim was, that I had to terminate my Tablet's SystemUI-Process to achieve a Kiosk mode (with no System-Bar) and the ProgressDialog dims everything but the area where the System-Bar was, so I have a bright border at the bottom of the screen.</p>
  
  <p>If there is a way to get a complete fullscreen-dim, I would be also happy.</p>
  
  <p>Thanks for any help</p>