Tag Archives: Room

Tutorial

Android LiveData and ViewModel with Example.

In this tutorial, you’ll get started with Android LiveData, we will create simple Nots app that you can add new Nots and also edit or delete Nots. LIVEDATA: Livedata is an observable data holder class. Unlike a regular observable, livedata is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments,…

Continue reading

Tutorial

Android Room Database Example

In this tutorial, you’ll get started with Android Room, we will create simple Contacts app that you can add new contact and also edit or delete contacts. Room offers a layer of abstraction over SQLite to allow fluent access to the database while exploiting SQLite’s complete authority. To configure your app to use  Room, add the  Room component to the build.gradle file in the app module  Adding Room Entities Create a java class with getter and denoted it with @Entity annotations. On Database instance create table will created in…

Continue reading

×