title: How to correctly dismiss a DialogFragment?
body: <p>The docs say this for the <code>dismiss()</code> method from the <code>Dialog</code> class:</p>
  
  <blockquote>
    <p>Dismiss this dialog, removing it from the screen. This method can be invoked 
        safely from any thread. Note that you should not override this method to do 
        cleanup when the dialog is dismissed, instead implement that in <code>onStop()</code>.</p>
  </blockquote>
  
  <p>In my code, all I do is call <code>getDialog().dismiss()</code> to dismiss it. But I am not doing anything else or even using <code>onStop()</code>. So I am asking exactly how to correctly dismiss a <code>DialogFragment</code> to avoid any memory leaks, etc..</p>