Open mohammadso opened 7 years ago
you should pass parent which is an activity to constructor of fragment , then try this : parent.getFragmentManager()
or you could use dpd.show(getActivity().getFragmentManager(), DATEPICKER);
thnx that was usefull for me :)
when calling the show method inside a fragment, what should i pass as the first argument. when trying to pass "getFragmentManager", i get this error:
can not resolve method 'show (android.support.v4.app.FaragmentManger, java.lang.String)