title: Android alert dialog and set positive button
body: <p>This is for a slider puzzle. I want to show a dialog box with OK button when the puzzle is completed. When the OK button is pressed, I use an <code>Intent</code> to load a website via Android browser. Only problem is that with the current code, when the puzzle is complete, it does not load a box (it does when I use <code>null</code>). It doesn't do anything. Any ideas?</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
  builder.setTitle(!puzzle.isSolved() ? R.string.title_stats : stats.isNewBest() ? R.string.title_new_record : R.string.title_solved);
  builder.setMessage(msg);
  builder.setPositiveButton(R.string.label_ok, new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int id) {
          Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("http://www..com"));
          Bundle b = new Bundle();
          b.putBoolean("new_window", true); //sets new window
          intent.putExtras(b);
          startActivity(intent);
       }
  });
  </code></pre>