1 min readJan 4, 2020
I want to save state of a CountDownTimer using ViewModel. In that case, the value must always be synchronized with LiveData. I also want to save a textview state on screen rotation. How can we do this using ViewModel?
I want to save state of a CountDownTimer using ViewModel. In that case, the value must always be synchronized with LiveData. I also want to save a textview state on screen rotation. How can we do this using ViewModel?
I’m an Android App Developer by Profession. I would like to write out my thoughts and learning to let others learn through my experiences.