I have an activity with three fragments in it, This is how I communicate between the three fragments:
First I display only FragmentA
in ActivityA<
In such circumstances in which multiple fragments and activities want to communicate with each other, two options come in mind.
Recommended
Image source: https://stackoverflow.com/a/24083101/1841194
I would also recommend implementing an interface. Here is a good blog post guiding about Inter fragment communication. If you do not want to implement interface then you can use Eventbus. A good library for that would be Otto