title: Alternative setButton
body: <p>I use this code in my android project:</p>
  
  <pre><code>alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int which) {
          }
      });
  </code></pre>
  
  <p>But, Eclipse says that <code>setButton()</code> is deprecated. Please, help me with an alternative solution. Thanks!</p>