Restoring Room database from a local backup file, LiveData ViewModel doesn't refresh
问题 I'm trying to restore a room database programmatically. I followed this tutorial to implement a view model using LiveData of Words list, so that the words list refresh automatically on screan when insert, delete or update. mWordViewModel.getAllWords().observe(this, new Observer<List<Word>>() { @Override public void onChanged(@Nullable final List<Word> Words) { // Update the cached copy of the Ussds in the adapter. adapter.setWords(Words); } }); I also used the following code to backup and