Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

pop back stack fragment android

 public void removeFragmentbyTag(String myFrag){

 FragmentManager manager = getActivity().getSupportFragmentManager();
 FragmentTransaction trans = manager.beginTransaction();
 trans.remove(myFrag);
 trans.commit();
 manager.popBackStack();
}
 
PREVIOUS NEXT
Tagged: #pop #stack #fragment #android
ADD COMMENT
Topic
Name
2+4 =