1 public void removeFragmentbyTag(String myFrag){
2
3 FragmentManager manager = getActivity().getSupportFragmentManager();
4 FragmentTransaction trans = manager.beginTransaction();
5 trans.remove(myFrag);
6 trans.commit();
7 manager.popBackStack();
8}