title: Android Alert Dialog with one, two, and three buttons
body: <p>I don't make alerts very often but every time I do it takes me a while to read through the <a href="https://developer.android.com/guide/topics/ui/dialogs.html" rel="noreferrer">documentation</a> and figure out how to do it. Since I have had to do this a few times now, I am going to write an answer below that I can come back to in the future. Specifically I want to compare the basic code for </p>
  
  <ul>
  <li>One button (OK)</li>
  <li>Two buttons (OK and Cancel)</li>
  <li>Three buttons (Positive, Negative, Other)</li>
  </ul>
  
  <p>It would be nice to have the basic code for these three common alert types in one spot for easy reference and modification in the future. <a href="https://stackoverflow.com/questions/2115758/how-do-i-display-an-alert-dialog-on-android">This question</a> asks how to do it for one button. </p>