i have two fragments,in first fragment i have list of invoice details with check box in list view . i need to store the list items while back from the second fragment
1st fragment:
MakePayment debtorsAging = MakePayment.newInstance();
debtorsAging.setArguments(bundle);
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.content_frame, debtorsAging,MakePayment.TAG);
fragmentTransaction.addToBackStack(PaymentCollection.class.getName());
fragmentTransaction.commit();
2nd fragment:
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction ft=fragmentManager.beginTransaction();
ft.remove(new MakePayment());
ft.commit();
fragmentManager.popBackStackImmediate();
need to restore list of invoices with checked items on go back from makePayment fragment to paymentCollection fragment