I\'m very new to android and I\'m following this example.
The code says we need to do these steps to get an dialog box:
AlertDialog.Builder builder =
// 1. Instantiate an AlertDialog.Builder with its constructor
AlertDialog.Builder builder = new AlertDialog.Builder(yourActivityName.this);
// 2. Chain together various setter methods to set the dialog characteristics
builder.setMessage(R.string.dialog_message).setTitle(R.string.dialog_title);
// 3. Get the AlertDialog from create()
AlertDialog dialog = builder.create();
// 4. Show the AlertDialog
dialog.show();