title: How to update AlertDialog content using showDialog(id)
body: <p>i want to have in my application an alertdialog, that has its message updated everytime it is showed. 
  This is because the dialog box value depends on some values on the application. </p>
  
  <p>Now i tried to use the showDialog method:</p>
  
  <pre><code>@Override
  public boolean onTouch(View arg0, MotionEvent arg1) {
      showDialog(RESULT_DIALOG);
      return false;
  }
  </code></pre>
  
  <p>But once the dialog is created, it doesn't change the message (i know that if the dialog is created, it use the started version). </p>
  
  <p>My onCreateDialog method code is:</p>
  
  <pre><code>public Dialog onCreateDialog(int dialogId) {
      AlertDialog dialog;
      switch(dialogId) {
      case RESULT_DIALOG:
          // do the work to define the pause Dialog
          AlertDialog.Builder builder = new AlertDialog.Builder(this);
          builder.setMessage(localTv.getText())
                 .setCancelable(false)
                 .setPositiveButton("Ok", new DialogInterface.OnClickListener() {
                     public void onClick(DialogInterface dialog, int id) {
                          dialog.cancel();
                     }
                 });                                 
          dialog = builder.create();
          break;
      default:
          dialog = null;
      }
      return dialog;
  }
  </code></pre>
  
  <p>There is a way to update the content of the AlertDialog. 
  Actually i create a new dialog box every time the onTouch event is called. But i'm not sure that it is the cleanest way to solve that problem. </p>
  
  <p>Any idea? 
  Thanks :) </p>