Who is this for?
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.
- Persistence with Android SDK
- Using Room
- Manage relations with Room
- Managing and testing Migrations
- Firebase Realtime Database
- Cloud Storage
The persistence of data has always been a fundamental part of any application. Saving data locally or remotely with the modern techniques 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...more
Before You Begin
This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.
Saving Data Using Android SDK
Managing persistence is one of the main features that every mobile environment should provide, and Android is no different. In this chapter, you’ll learn, through practical examples, how to use the API that Android SDK provides to persist data. You’ll learn when and how to manage persistence depending on the type and quantity of data.
At Google I/O 2018, Google presented a set of new components for Android development with the name of Architecture Components. The goal was to provide a set of solutions for the most common problem in the development of Android applications. The solution for persistence is Room which is the topic of this section. You’ll learn how to use this library in the most common scenarios.
Firebase is a mature suite of products that allow you to implement Android applications that persist information in a safe, secure and reliable way. In this section, you’ll learn the fundamentals and more advanced concepts of Firebase, including Realtime Database, as well as usage and performance.