I have a fragment I am trying to add into a view.
FragmentManager fragMgr=getSupportFragmentManager(); feed_parser_activity content = (feed_parser_activity)f
I fixed this bug, I use the commitNow() replace commit().
commitNow()
commit()
mFragment.getChildFragmentManager() .beginTransaction() .replace(R.id.main_fragment_container,fragment) .commitNowAllowingStateLoss();
The commitNow is a sync method, the commit() method is an async method.
commitNow