Android Architecture Components
In this chapter, we will look at some of the most important architecture components used in the creation of Android apps. We will first look at ViewModel
components, which help to decouple the business logic that our application uses from the user interface (UI) that we present to our users. When looking at ViewModel
components, we will also analyze how we can combine them with additional libraries to handle more expensive tasks. We will also look at how we can use ViewModel
components and the SavedStateHandle
class to save the instance state.
We will then continue by looking at the Room persistence library, which we will use to save data on a device in a structured way, such as a database. Here, we will also look at how we can integrate third-party libraries to observe changes in our data.
By the end of the chapter, you should be able to create an Android app that can store data on a device and show it to the user, using the studied components...