Android Architecture Components: Creating an app using Room, LiveData, and ViewModel

General News

Summary

As part of Android Jetpack, these Architecture Components help you create more robust, testable and maintainable applications, by providing libraries for common tasks, including data persistence and lifecycle management. Room, ViewModel, DAO, LiveData – we have lots to cover, so create an Android project using the “Empty Activity” template, and let’s get started! After completing all the above steps, your finished code should look something like this: If you’re using RxJava, then Room’s @Query method also supports return values of Observable, Publisher, and Flowable. Room is a SQLite object mapping library that lets you store data locally on the user’s device, so they can access it regardless of the state of their Internet connection. Let’s start with the easiest task: updating our NewItemActivity so that every time the user taps the “Save” button, the contents of the EditText will be placed in an Intent and sent to our MainActivity.

Classifications

industries
HealthTech
applications
Data Management

AskAI Classifications

Labels
Healthcare IT Surgical Workflow Software SaaS

Linked Companies

LiveData, Inc.
$1M to $5M
GitHub, Inc.
$1M to $5M