How to show DialogFragment from within the onLoadFinished method of LoaderCallbacks
<p>I receive an exception when trying to show a DialogFragment from within the onLoadFinished method of a Fragment that implements the LoaderCallbacks interface.  Basically I am using the LoaderCallbacks to get some data from a rest service and then on the onLoadFinished I am trying to show a custom DialogFragment that contains a ListVeiw to allow the user to make a selection.  Everything works great except when I try to launch the dialog from within the onLoadFinished. How can I accomplish this..and is this the correct approach to the problem.</p>

<p>Here is an example of what I am trying to do:</p>

<pre><code>public class EventFragment extends Fragment implements LoaderCallbacks&lt;someresponse&gt; {

    @Override
    public void onLoadFinished(Loader&lt;someresponse&gt; arg0, someresponse data) {
        //an exception is generated when trying to launch a dialog fragment from 
        //within the onLoadFinished
        FragmentManager manager = getFragmentManager();             
        ListViewDialogFragment dialog = ListViewDialogFragment.newInstance(data);   
        dialog.show(manager, "event_list_dialog");  

    }
}
</code></pre>

<p>Thanks!</p>
