onbackpressed fragment pass value in android

Solutions on MaxInterview for onbackpressed fragment pass value in android by the best coders in the world

showing results for - "onbackpressed fragment pass value in android"
Dylan
01 Oct 2018
1 FragmentTransaction ft = getActivity().getFragmentManager().beginTransaction();
2    FragmentB frgamentB = new FrgamentB();
3    fragmentB.setTargetFragment(FrgamentA.this, AppConstant.FRAGMENT_CODE);
4    ft.addToBackStack(fragment.getClass().getName());
5    ft.add(R.id.content, fragment, tag);
6    ft.commit();