title: How to add message box with 'OK' button?
body: <p>I want to display a message box with an OK button. I used the following code but it results in a compile error with argument:</p>
  
  <pre><code>AlertDialog.Builder dlgAlert  = new AlertDialog.Builder(this);
  dlgAlert.setMessage("This is an alert with no consequence");
  dlgAlert.setTitle("App Title");
  dlgAlert.setPositiveButton("OK", null);
  dlgAlert.setCancelable(true);
  dlgAlert.create().show();
  </code></pre>
  
  <p>How should I go about displaying a message box in Android?</p>