How to use more than two buttons in dialog box
<p>In AlertDialog , I can use two types of button, negative button and positive button. But If I want to use more than two buttons what I need to do?
The following program Is not working ..</p>

<pre><code>    AlertDialog.Builder alert = new AlertDialog.Builder(
                        QuizActivity.this);
                alert.setTitle("Quiz Result");
                alert.setMessage("Correct Answer: "
                        + scoreMode.getCorrectAnswer() + "\n"
                        + "Wrong Answer: " + scoreMode.getWrongAnswer()
                        + "\n" + "Total Score: "
                        + scoreMode.getScorePoint() + "\n"
                        + "Bonus Score: " + scoreMode.getBonusPoint());
                alert.setPositiveButton("Save result",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface arg0,
                                    int arg1) {
                                showSaveResultDailog(scoreMode
                                        .getScorePoint());
                            }

                        });
                alert.setNegativeButton("Play Again",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface arg0,
                                    int arg1) {
                                Intent i = new Intent(QuizActivity.this,
                                        QuizOptionActivity.class);
                                startActivity(i);
                            }
                        });
                alert.setNegativeButton("Back to Main Menu",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface arg0,
                                    int arg1) {
                                Intent i = new Intent(QuizActivity.this,
                                        HomeActivity.class);
                                startActivity(i);
                            }
                        });
                alert.show();
</code></pre>
