title: Android Alert Dialog - how to hide the OK button after it being pressed
body: <p>I have been developing an Android app.</p>
  
  <p>I would like to hide the OK button after the user presses it, as the dialog window will stay at the foreground for some seconds while a computation takes place.</p>
  
  <p>This is the code:</p>
  
  <pre><code>    new AlertDialog.Builder(this)
      .setMessage("This may take a while")
      .setPositiveButton("OK", new android.content.DialogInterface.OnClickListener() {                
          @Override
          public void onClick(DialogInterface dialog, int which) {
                         // hide the OK button - how?
                         // a lot of computation
          }
      })
      .show(); 
  </code></pre>
  
  <p>How can I achieve that?</p>
  
  <p>P.S.: I am not interesting to more advanced techniques to handle a computation (such as: progress dialogs, multi-threading).</p>
  
  <p>Thanks.</p>