title: Android: how to disable controls during progress bar is active
body: <p>I show my infinte progress bar in the action bar "as usual":</p>
  
  <pre><code>requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
  ...
  setProgressBarIndeterminateVisibility(true);
  ...
  setProgressBarIndeterminateVisibility(false);
  </code></pre>
  
  <p>and the real work is done in a background thread (AsyncTask)</p>
  
  <p>The problem: all controls on the UI are enabled, so the user can continue to modify the underlying data before the long lasting process is finished.</p>
  
  <p>Simply disabling all controls is not possible because when disabling an EditText, also the keyboard is closed automatically by Android.</p>
  
  <p>Any ideas how to prevent user input during the background work?</p>
  
  <p>Thanks,</p>
  
  <p>Chris</p>