I have a Fragment called \"MeinProfilFragment\". And a MainActivity which handles the ActionBar-Tabs logic.
In the \"MeinProfilFragment\" i hav
you can replace fragment by using this
FragmentManager fragmentManager2 = getFragmentManager();
FragmentTransaction fragmentTransaction2 = fragmentManager2.beginTransaction();
DetailFragment fragment2 = new DetailFragment();
fragmentTransaction2.addToBackStack("xyz");
fragmentTransaction2.hide(MeinProfilFragment.this);
fragmentTransaction2.add(android.R.id.content, fragment2);
fragmentTransaction2.commit();