title: Custom Theme on Dialog Box
body: <p>I'd searched for a custom dialog box and I found that adding theme is one way of customizing the <code>alertdialog</code> and whenever I add <code>android.R.style.Theme_Translucent_NoTitleBar</code> on my <code>AlertDialog</code>. My program forces to close when running. and I receive <code>Call requires API level 11 (current min is 8): new android.app.AlertDialog.Builder</code> Do I need to install API level 11?</p>
  
  <p>My API is from 8 to 19.</p>
  
  <p>heres my code:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
       builder = new AlertDialog.Builder(this, android.R.style.Animation_Dialog);
       builder.setTitle("Exit");
       builder.setMessage("Do you want to quit the game?");
       builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
            dialog.dismiss();
            finish();
                  }
              });
       builder.setNegativeButton("No", new DialogInterface.OnClickListener() {
       @Override
            public void onClick(DialogInterface dialog, int which) {
            dialog.dismiss();
              }
          });
  
          AlertDialog alert = builder.create();
          alert.show();
  }
  </code></pre>
  
  <p>what should I need to use this different kind of theme?</p>
  
  <p>please apologize my question thank you guys</p>