Top "Android-room" questions

For questions related to Android Room Persistence Library (which is a part of Android Architecture Components)

What is the use of androidx.legacy:legacy-support-v4: dependencie

I was implementing Android Room Database and in one of the tutorial i found androidx.legacy:legacy-support-v4:1.0.0 dependencies. Please any …

android android-room androidx android-jetpack
How to handel no results with Android Room and RxJava 2?

I have database with table contact and I want to check if there is contact with some phone number. @Query("…

android rx-java2 android-room
Collection contains no element matching the predicate

I'm using the Room library, and I'm getting the following error message when I try to build the app: e: […

android android-room kapt
How to store objects in Android Room?

Basically, there are two things I don't understand: objects with objects and objects with lists of objects Say I receive …

android android-room
Android Room: @Ignore vs Transient

Are those two interchangable in context of Room database entity, or, if not, what are the differences between them?

android serialization android-room transient
LiveData Object keeps being null after getValue() is called

I want to update a member variable of an object inside my Repository on a LiveData- Object. The problem is, …

android-room android-livedata android-mvvm
Using Room's @ForeignKey as @Entity parameter in Kotlin

I came across a Room tutorial that makes use of the @PrimaryKey annotation on the class definition: @Entity(foreignKeys = @ForeignKey(…

java android kotlin android-room java-annotations
Best practice: Runtime filters with Room and LiveData

I am working on a screen that shows the contents of a Room wrapped DB using a recycler. The adapter …

android mvvm android-room android-livedata
Android Room persistence library @Update not working

I am trying to update my database via new android room library, but it is not working. Here it is …

android database sqlite sql-update android-room