getsupportfragmentmanager not working in fragment Ask Question
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();