Using any version of the observer pattern is the only way! Even defining an interface and creating a view implements this interface mainly using an observer pattern. What is Java Observable, Rx Observable and LiveData, it simplifies this process.
source share