title: trouble setting dialog positive button
body: <p>I create my Dialog as:</p>
  
  <pre><code>// custom dialog
  Dialog dialog = new Dialog(this);
  dialog.setContentView(R.layout.add_taste_dialog);       
  dialog.setTitle("Add Taste");
  </code></pre>
  
  <p>then I try and set the positive button with:</p>
  
  <pre><code>dialog.setPositiveButton(R.string.addtaste, new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int id) {
  
  
  
  
              }
          });
  </code></pre>
  
  <p>Eclipse give me this error:</p>
  
  <pre><code>The method setPositiveButton(int, new DialogInterface.OnClickListener(){}) is undefined for the type Dialog
  </code></pre>
  
  <p>I was following the android developers references here:</p>
  
  <p><a href="http://developer.android.com/guide/topics/ui/dialogs.html" rel="nofollow">http://developer.android.com/guide/topics/ui/dialogs.html</a></p>