Razeware LLC, 2019. — 290 p. — ISBN: 978-1942878896.
A book that will teach you to persist data on Android — saving locally or remotely — along with the modern techniques for synchronization, allowing your app to be reactive and always up-to-date.
The persistence of data is always been a fundamental part of any application. Saving data locally or remotely with the modern technics for synchronization allows your app to be always up-to-date, reactively presenting fresh data. This book is for intermediate Kotlin or Android developers who want to know how to persist data using the standard Android APIs, the Room architecture component or what Google Firebase can offer.
Topics Covered in this Book:
Persistence with Android SDK: Learn how to manage files, SharedPreferences or SQLite databases using the APIs the Android platform has to offer by default.
Using Room: Room is one of the most important Google Architecture Component. It allows managing entities and relations using classic Object-Oriented principles. In this book, you’ll learn everything you need to store data and run queries on top of it.
Manage relations with Room: A database has entities and relations. With this book, you’ll learn how to design your DB and how to manage relations eagerly and lazily.
Managing and testing Migrations: Every application evolves in time. Here you’ll learn how to manage migrations with Room and how to test them properly.
Firebase Realtime Database: If you want to manage data locally and in remote, you can use the tools provided by Google through the Firebase platform. With Firebase Realtime Database you can manage and keep in sync data in a very simple and efficient way.
Cloud Storage: Another option provided by Google is the Cloud Storage which allows you to leverage all the power of Google infrastructure to manage your data and run expensive queries.
Who This Book Is ForWhat You Need.
Book Source Code & Forums.
About the Cover.
Using Files.
Shared Preferences.
SQLite Database.
ContentProvider.
Room Architecture.
Entity Definitions.
Mastering Relations.
The DAD Pattern.
Using Room with Google's Architecture Components.
Migrations with Room.
Firebase Overview.
Introduction to Firebase Realtime Database.
Reading to & Writing from Realtime Database.
Realtime Database Offline Capabilities.
Usage & Performance.
Introduction to Cloud Firestore.
Managing Data with Cloud Firestore.
Reading Data from Cloud Firestore.
Securing Data in Cloud Firestore.
Cloud Storage.