I need to mock a Cursor for some content provider unit tests, but the addRow method is not working for some strange reason. After adding a row, the co ...
I need to mock a Cursor for some content provider unit tests, but the addRow method is not working for some strange reason. After adding a row, the co ...
I backed up the database by copying the db file, and then recovered the database by overwriting the db file. After recovery, the data of one of the ta ...
I have looked for many solutions but I found it as a newbie very complex on how to solve it properly without throwing away all my backend code. I wan ...
I am not familiar with Room Database. I want to clear the data from some tables when I click on button. I have the similar code in IOS but I am not su ...
I am experimenting with Room, Live Data and Recycler View in Android Kotlin. My question is, I am trying to make an expense tracking APP, and I have ...
I am trying to back up my database file in to the storage directory. But as soon as I click the save button the application crashes. Saying it cannot ...
I have a simple room database with LiveData, i want to get (cartPriceI: Double) values by id to use it within specific methods. CartItemsDatabase.kt ...
we have a ROOM database with a table containing a Date field and and an amount field. The Date field is the (@NonNull) primary key. An initial query c ...
When i tried to update my recyclerView with view model in room database every id edits the previous one, not its item id in recyclerView. I used adapt ...
On the bottom I added a picture of my current app structure and the current code for included data classes / entities. At the moment in my app the us ...
Description I'm attempting to encrypt a token along with its IV to a pair of ByteArrays, serialize it, then write it to a Room database. The steps ar ...
I'm trying to obtain the result of a subtraction between two rows in the database. Users specify the conditions on spinners (populated with the "model ...
I wasnt getting any errors before. But today, i entered my project to edit and saw these errors. First one is on this line; I can fix it with Alt ...
I can not fix the error when creating Room Database in Android Studio. Error: stmt.bindLong(1, value.ID); Also in the database sql queries: "notes", " ...
Existing approach: Currently we use TypeConverters to help database to store and retrieve complex data type (POJO class objects). But that involves se ...
In room, I have a dao to something like this: And inside the repository, I'm simply calling this method and logging it: But the thing is it's re ...
I have a table with lessons and I need to select all the unique group names from there to display them in the recycle view Lesson data class Lesso ...
I'm trying to make migration and I don't understand where is the problem. I see title is the first row, but I do not understand why. In RoleRoom we ...
I have tesktask to create a weather app that show weather in users city be GeoLocation. I use stack of technologies : Dagger,Room, Retrofit,Coroutine ...
I am trying to insert values to room database but it's not working, I checked the database, and the tables were not created. I have created the databa ...