title: Android - Change the text of the positive button of an AlertDialog
body: <p>I reuse an AlertDialog box in my android app. </p>
  
  <p>I create a dialog in the onCreateDialog() method and in the onPrepareDialog() method, I try to change the text of the positiveButton using the following code.</p>
  
  <pre><code>alertDialog.setButton(DialogInterface.BUTTON_POSITIVE, this.getString(R.string.add), new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int id) {
            //Handler code
      }
  }
  </code></pre>
  
  <p>The onclick listener is getting changed, but the button text is not changed.</p>
  
  <p>Is it a bug in Android or am I doing something wrong?</p>