Does that help It's a practice designed to restrict modification of the value from outside the class. LiveData is read-only. MutableLiveData, as the name implies, allows one to change the value it holds.
Using Livedata and having a problem with displaying MutableLiveData<Float> result
I hope this helps you . I am just testing ViewModel and LiveData of Android Architechture Components. I have this basic Activity with one EditText to receive a number from the user and when clicking the Convert button then the Textview should give the result multipled by 0.87. For example when I put 100 in EditText and click Convert button it should give the result of 87. But when I click the Convert button the Textview gives the value of "android.arch.lifecycle.MutableLiveData@eb84a7b". And when I rotate the screen then the result becomes 87. Could you please have a look at my code and tell me where I should revise the code so that the result gives the number when I click Convert button? , Use getValue() instead of toString()