Название: Android's Architecture Components 0.10 Автор: Mark L. Murphy Издательство: CommonsWare Год: 2018 Страниц: 338 Язык: английский Формат: pdf (true), azw3, mobi, epub Размер: 10.19 MB
Thanks for your interest in Android app development, the world’s most popular operating system! And, thanks for your interest in the Android Architecture Components, released by Google in 2017 to help address common “big-ticket” problems in Android app development.
We start off with a look at Room, an object/relational mapping (ORM) library. This makes it a bit easier to integrate your app with SQLite, the built-in relational database engine in Android.
We then move into the lifecycle components. These components help you deal with objects that have lifecycles, particularly activities and services. The LiveData class in particular gives you a lightweight “reactive” way of consuming data while still honoring things like configuration changes and the typical activity/fragment destroy-and-recreate cycle. We will also peek at ViewModel, the Architecture Components’ way of helping you maintain state across configuration changes. We will see how other libraries, like data binding and RxJava, can be tied into the Architecture Components.
We then move into a discussion of architecture in general, with material on the repository pattern and major GUI architecture patterns. Then, we start to investigate one of those GUI architectures — Model-View-Intent (MVI) — in detail, through some larger sample apps.
This update (Version 0.10):
- Adds a new chapter on WorkManager - Adds a new chapter on backing up a Room database - Expands the material on LiveData and data binding - Moves all of the sensor-related sample code into a Sensors/ directory - Fixes various errata and makes other improvements
Elements Of Android Q 0.2 Название: Elements Of Android Q 0.2 Автор: Mark L. Murphy Издательство: CommonsWare, LLC Год: 2019 Страниц: 95 Язык: английский Формат: pdf (true),...