This ViewModel-LiveData app to use ViewModel and LiveData to update variable when change happen
1 - Using ViewModel to save data when configuration change like change orientation.
2 - Using LiveData to update data when change happen.
This ViewModel-LiveData app to use ViewModel and LiveData to update variable when change happen
Java