title: Making an android dialog as simple as a toast?
body: <p>I know there is a very easy way to make a <code>Toast</code> appear in your android application, for example, like so...</p>
  
  <pre><code>Context context = getApplicationContext();
                  CharSequence text = "Please select a contact to delete!";
                  int duration = Toast.LENGTH_LONG;
  
                  Toast toast = Toast.makeText(context, text, duration);
                  toast.show();
                  return true;
  </code></pre>
  
  <p>Upon reading some documentation, I've found that making a  simple yes or no <code>Dialog</code> appear can be done in multiple ways and is generally longer.</p>
  
  <p>My question is, what is the simplest way a simple a dialog can be made. For example, <code>Are you sure you want to delete this file?</code> with buttons <code>Yes</code> or <code>No</code>.</p>
  
  <p>Thanks.</p>