Custom DialogFragment onDismiss not called/working
<p>The problem is that the onDismiss is not getting fired if I use FragmentsTransaction:</p>

<pre><code>FragmentTransaction transaction = getFragmentManager().beginTransaction();

// For a little polish, specify a transition animation
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);

// To make it fullscreen, use the 'content' root view as the container
// for the fragment, which is always the root view for the activity
transaction.add(android.R.id.content, _dialogInfo).addToBackStack(null).commit();
</code></pre>

<p>but if I use show(), onDismiss event is called:</p>

<pre><code>_dialogInfo.show(getFragmentManager(), DialogFragmentInfo.TAG);
</code></pre>

<p>The onDismiss is implemented at the custom DialogFragment like this:</p>

<pre><code>@Override
public void onDismiss(DialogInterface dialog) {
    super.onDismiss(dialog);
}
</code></pre>

<p>Im not sure why is this and I did not find any explanation in the Documentation.</p>