Android Studio 4.1 Development Essentials - Java Edition was published on October 24, 2020. The current revision is 1.0. The revision of your copy of the book can be found in the copyright page at the start of the book.
11.5 Using View Bindings
The import statement contained in this chapter incorrectly references com.ebookfrenzy instead of the com.example domain. The statement should read as follows:
import com.example.androidsample.databinding.ActivityMainBinding;
35.2.5 - Data Binding Variable Configuration
The code fragment in this section incorrectly references mViewModel as myViewModel. The code should read as follows:
MainViewModel mViewModel = new ViewModelProvider(this).get(MainViewModel.class); binding.setVariable(viewModel, mViewModel);
37.3 Saving and Restoring State
The closing parenthesis was omitted from the following code line:
savedStateHandle.set(NAME_KEY, customerName);
68.10 - Preparing the Main Fragment
This section incorrectly instructs the reader to include the following import directive within the MainFragment.java file:
import com.ebookfrenzy.roomdemo.ProductListAdapter;This import should not be added to the file.
If you have encountered an issue with the book not listed above please contact us as at [email protected] and we will work to resolve the issue for you as quickly as possible.