title: AlertDialog in a fragment
body: <p>I'm developing an app which has an Action Bar that splits the main activity in fragments. </p>
  
  <p>Right after opening one of these fragments, I want an alert dialog to be displayed. This dialog will have a positive and a negative button that will do some background actions and then display a message in the fragment.</p>
  
  <p>How can I do that? Do I need a DialogFragment?</p>