I am trying to get data from fragmentA into my other fragment i.e fragmentB. In my fragmentA there is a Edittext field and when user hit submit button, the data from Edittext should display in my fragmentB. I tried to follow this link but since I am new to xamarin mobile dev area I couldn't figure out the answer. Can anyone help me with this issue.
I tried doing this but I am not getting any data from fragmentA to fragmentB
fragmentA
submitButton.Click += delegate
{
TrackInfoFragment fragment = new TrackInfoFragment();
Bundle bundle = new Bundle();
bundle.PutString("message", "From Activity");
fragment.Arguments = bundle;
};
fragmentB
Bundle bundle = new Bundle();
string test = bundle.GetString("message");
Console.WriteLine("Test: " + test);