TheActivity implements Communicator interface which requires to override a method that,
in turn,
calls a method on Fragment B which does the required change in UI of Fragment B
. Fragment A can keep a reference to a ‘Communicator’ instance and delegate the task to implementer of the interface. Fragment A might enforce the host Activity to implement Communicator as follows