title: Issue with Android alert dialog
body: <p>I am trying to put an alert dialog in my Android app. It's working fine but the problem is after the dialog shows and I click on the main button it show TWO dialog one only title and the other one is title with message content and 2 buttons. I have tried so many tutorials but all same problem I can't figure out.
  This is my code:</p>
  
  <pre><code>AlertDialog.Builder alertDialog = new AlertDialog.Builder(BuyFull.this);
  
  alertDialog.setTitle(R.string.app_name);
  
  alertDialog.setMessage(R.string.sms);    
  
  alertDialog.setPositiveButton(R.string.buy, new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog,int which) {
          Toast.makeText(getApplicationContext(), "You clicked on buy", Toast.LENGTH_SHORT).show();
      }
  });
  
  alertDialog.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int which) {
          Toast.makeText(getApplicationContext(), "You clicked on NO", Toast.LENGTH_SHORT).show();
          dialog.cancel();
      }
  });
  
  alertDialog.show();
  </code></pre>