Weird android fragment issue using back stack

view story

http://stackoverflow.com – I have following issue with Android compatibility package fragments. There is following hierarchy of fragments: A(login) -> B(dashboard) -> C(details) Login fragment is added with function: private void addFragment(Fragment f) { FragmentTransaction ft = mFragmentManager.beginTransaction(); ft.replace(R.id.main_content, f); ft.commit(); } After successfull login dashboard is added same way, without adding transaction to backstack. C fragment is added like: FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.replace(R.id.main_content, f, id); ft.addToBackStack( (HowTos)