title: AlertDialog does not show onclick
body: <p>AlertDialog does not show onclick.</p>
  
  <p>When you longclick on a button, there should be a dialog that pops up, but it doesn't. The longClicklistener is accessed, but the dialog still does not come up.</p>
  
  <pre><code>    // Set Reset Button
      resetBtn = (ImageButton) findViewById(R.id.resetButton);
      resetBtn.setOnLongClickListener(new Button.OnLongClickListener() {
          @Override
          public boolean onLongClick(View v) {
              AlertDialogWrapper.Builder alertDialog = new AlertDialogWrapper.Builder(MainActivity.this);
              alertDialog.setPositiveButton(getString(R.string.MAIN_MENU_RESET_ALERT_YES), new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int which) {
                      // Write your code here to invoke YES event
                      Toast toast = Toast.makeText(MainActivity.this, getString(R.string.MAIN_MENU_RESET_ALERT_RESULT_YES), Toast.LENGTH_LONG);
                      toast.show();
                  }
              });                alertDialog.setNegativeButton(getString(R.string.MAIN_MENU_RESET_ALERT_NO), new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int which) {
                      Toast.makeText(MainActivity.this, getString(R.string.MAIN_MENU_RESET_ALERT_RESULT_NO), Toast.LENGTH_SHORT).show();
                      dialog.cancel();
                  }
              });
              // Showing Alert Message
              return true;
          }
      });
  </code></pre>