Recently I am exploring Android Architecture, that has been introduced recently by google. From the Documentation I have found this:
public class MyViewModel
You can use MutableLiveData.postValue(T value) method from background thread.
MutableLiveData.postValue(T value)
private void loadUsers() { // do async operation to fetch users and use postValue() method users.postValue(listOfData) }