Answers for "onbackpressed fragment pass value in android"

0

onbackpressed fragment pass value in android

FragmentTransaction ft = getActivity().getFragmentManager().beginTransaction();
    FragmentB frgamentB = new FrgamentB();
    fragmentB.setTargetFragment(FrgamentA.this, AppConstant.FRAGMENT_CODE);
    ft.addToBackStack(fragment.getClass().getName());
    ft.add(R.id.content, fragment, tag);
    ft.commit();
Posted by: Guest on February-18-2021

Code answers related to "onbackpressed fragment pass value in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language