getsupportfragmentmanager not working in fragment
i'm using DialogFragment but the getsupportfragmentmanager not working is shows me an error cannot resolve getsupportfragmentmanager ();
Solutions

Nawab
Create a private FragmentActivity Context;
and Override
@Override
public void onAttach(Activity activity) {
Context=(FragmentActivity) activity;
super.onAttach(activity);
}
and use as below where you needed
FragmentManager fragManager = Context.getSupportFragmentManager();