Getfragmentmanager() Returns Null, With Android.support.v4.app.dialogfragment Support Libraray
here is the fragment dialog: import android.support.v4.app.DialogFragment; public static class SensorMeasurmentsDialogFragment extends DialogFragment { public static SensorM
Solution 1:
In one of my fragments, I was using replace
so when I used add
it worked good!
might help you
Solution 2:
The activity must extend from FragmentActivity for you to be able to use Fragments. You might have to use a workaround at the moment until Google updates their map library.
You might have to use a modified compatibility lib such as this one:
Solution 3:
I ran into this problem also. The problem happens with setRetainInstance(true) only. My workaround is to use the parent activity's FragmentManager object instead of the DialogFragment's FragmentManager.
Post a Comment for "Getfragmentmanager() Returns Null, With Android.support.v4.app.dialogfragment Support Libraray"