Send Data Activity to Fragment using LiveData and ViewModel Now we are not need to make static members and functions and interface to send data from one activity to fragment , fragment to fragment , fragment to activity. This problem is solved by LiveData , Observable and View Model.
Live Example https://www.youtube.com/watch?v=qRDfd_FOdkA&t=5s