How can I make it live data observer working based on user click event with take some user input, but should start observing from onCreate?
问题 I have retrofit then repository then view model and then view, but while clicking on button observer don't observe in onChanged. OnClicking on button from onClick, everything is working. I'm getting API response in logcat, but in onChanged it is not called! ManualLicenseKeyViewModel Code: public class ManualLicenseKeyViewModel extends ViewModel { public MutableLiveData<String> key = new MutableLiveData<>(); private MutableLiveData<License> mutableLiveData; private ManualLicenseRepository