title: How to add a check box to an alert dialog
body: <p>Currently when the user opens my app, an <code>AlertDialog</code> opens, asking them if they would like to upgrade to the pro version.</p>
  
  <p>I need to add a <code>CheckBox</code> to the <code>AlertDialog</code> that will make the app no longer show the <code>AlertDialog</code> when the user opens the app.</p>
  
  <p>Here is what I have for the <code>AlertDialog</code> now:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
      builder.setTitle(" MY_TEXT");
      builder.setMessage(" MY_TEXT ")
             .setCancelable(false)
             .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int id) {
                     Uri uri = Uri.parse("market://details?id=MY_APP_PACKAGE");
                     Intent intent = new Intent (Intent.ACTION_VIEW, uri);
                     startActivity(intent);                          }
             })
             .setNegativeButton("No", new DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int id) {
                      dialog.cancel();
                 }
             }).show();
  </code></pre>
  
  <p>How do I add a <code>CheckBox</code> to the <code>AlertDialog</code> that will make the app no longer show the <code>AlertDialog</code> when the user opens the app?</p>