I made a simple application in which i have tabs and each tab has its own fragment. From each fragment you can navigate into other fragments (by clicking on items in a list to display their details). My question is how do I add a back button to the child fragments ? such that when i click on it, the back stack is popped.
I tried getActivity().getActionBar().setDefaultDisplayHomeAsUpEnabled(true);
but that doesn't do anything + from my understanding this works if I am doing it with activities not fragments.