When to use RxJava in Android and when to use LiveData from Android Architectural Components?
I am not getting the reason to use RxJava in Android and LiveData from Android Architectural Components.It would be really helpful if the usecases and differences between the both are explained along with sample example in the form of code which explains the differences between the both. Android LiveData is a variant of the original observer pattern, with the addition of active/inactive transitions. As such, it is very restrictive in its scope. Using the example described in Android LiveData , a class is created to monitor location data, and register and unregister based on application state.