If I have a hosting activity of two fragments, and I want to send data from one fragment to the other (and vice versa) what would be the most efficient way to do so?
- Implementing an interface, declaring the fragments in layout....
- Creating a Singleton class that both fragments can use to set/get the private static variable inside the class.
- ?