Questions tagged [android-room]
For questions related to Android Room Persistence Library (which is a part of Android Architecture Components)
android-room
7,055
questions
1
vote
0
answers
21
views
What prevents my cellphone from retrieving the info in my room database?
I have an app with a room database. The person registers himself and the value he inputs is stored in a room database. The value is retrieved and updated in another screen. It works fine on 3 ...
0
votes
0
answers
17
views
How to Access and Use an Existing Room Database in Flutter Without Losing Data?
I have an active app on the Google Play Store with a large number of users. I am developing the iOS version of this app with Flutter and want to write the Android side of the app with Flutter as well. ...
0
votes
1
answer
48
views
Why is my room database data non persistent?
I have an android app that uses room database and dagger. I tried all the answers I found on the internet, and this is my last resort as I'm on the week 2 of solving this problem.
My Setup:
com....
0
votes
0
answers
30
views
How to export / import my Android Jetpack-Compose app's Room SQLite Database?
I have several jetpack-compose-based android applications, that use Room to store all its data.
Is there any way to export / import my database as a .sqlite file?
0
votes
0
answers
75
views
Room database dependencies in Android Studio Koala
I want to add libraries to be able to work on room databases, but I don't know which one to insert.
I am working on Android Studio Koala SDK 34 and Gradle KTS, I use Java as language.
Can someone help ...
1
vote
0
answers
19
views
Android, list from ResourceState no loading
I am developing an Android application that scans vehicle plates and saves discrepancies in a local database using Room. The data is then displayed in a RecyclerView. The core functionality works fine ...
0
votes
0
answers
29
views
How to store drawables in a pre-populated room database
I'm working on small app in kotlin for android and i used sql to make a small pre-populated database of books which i then load into a room database. I want to store the images of the books inside the ...
-3
votes
1
answer
53
views
Why is my code not pre-populating the database?
My app collects data for experiments. I am trying to pre-populate the database. I create directories for each experiment and store the database in each of those.
Folder storedData holds the database ...
0
votes
1
answer
132
views
+50
What gradle entries are required for implementing KSP and Room in a Kotlin Multiplatform
I am in the process of converting a kotlin application to kotlin multiplatform (anroid only for now to get through initial configuration) with room. This included moving to a libs.versions.toml file ...
0
votes
3
answers
40
views
App crashes when trying to use a pre-populated room database due to difference between the schemes
I'm trying to make a small app for a project and decided to use a pre-populated database however i keep getting an error that says that the Expected and Found schemes are different, but i don't know ...
0
votes
0
answers
19
views
Observe only affected rows in Room Database table android with LiveData
I have one room database table, and I have query as
@Query("Select * from message WHERE myId = :myId AND createdAt NOTNULL ORDER BY createdAt DESC")
fun getAllMessagesByRoomId(myId: Int): ...
0
votes
1
answer
27
views
Room Flow - How to handle updates of dynamic-based param request?
Given a room Database and a request with a DateTime based parameter :
@Transaction
@Query("SELECT * FROM itemModel WHERE datetime(datetime(`end`), 'localtime') > datetime(:minDate, 'localtime'...
2
votes
0
answers
52
views
Jetpack Compose CRUD application views don't refresh
I'm new to Android Compose. I'm generally teaching my daughter how to code and we decided to start with something that has an UI,so we chose Android to start. I made an app in Jetpack Compose and I ...
1
vote
1
answer
72
views
There is a delay when saving data into a Room Database
I'm trying to create a stop watch application. Everything works fine at first. The stop watch goes up from the milliseconds, to the seconds, to the minutes just fine. There are two timers, one of the ...
0
votes
0
answers
24
views
Android Kotlin Infotainment app with ROOM DB - error: Not sure how to convert a Cursor to this method's return type (java.lang.Object)
I am new to Android infotainment app development, I am storing the data in DB and get the data from DB and place the data in Google maps using PlaceListMapTemplate.
Can we use Room database in Android ...