Android alert dialog and set positive button

view story

http://stackoverflow.com – 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 Intent 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 null). It doesn't do anything. Any ideas? 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 (HowTos)