I have two fragments... First is sender fragment(name is DashBoardFragment), code is...
Bundle args= new Bundle();
args.putInt("position", i+1);
new CheckOutFragment().setArguments(args);
fragmentTransaction = getFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.mainframe_container, new CheckOutFragment());
fragmentTransaction.commit();
And reciever fragment's(CheckOutFragment) code is...
Bundle bundle = this.getArguments();
position = bundle.getInt("position");
Log.d("Got Position", String.valueOf(position));
Problem is i am not getting the value from getArguments()
.
Guys do help me out...