Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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....
jreloz's user avatar
  • 422
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 ...
nm16pc's user avatar
  • 25
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 ...
nm16pc's user avatar
  • 25
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'...
Jscti's user avatar
  • 14.3k
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 ...
Piotr Klimaszewski's user avatar
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 ...
Bob Rasner's user avatar
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 ...
Naveen's user avatar
  • 964
1 vote
1 answer
44 views

Kotlin Android different (Module:App) build.gradle structures makes tutorials hard to follow

I am quite new to developing in Android for kotlin. I was trying to follow a tutorial on how to setup a local Room Database in my App, but my build.gradle looks completely different than the persons ...
luk139's user avatar
  • 13
0 votes
0 answers
22 views

Android - Room Database enter loop on data update

I’m developing an app using Jetpack Compose, Room, Flow, Kotlin, and following the MVVM architecture. My app includes the following screens: HomeScreen: Displays the budget and a list of products. ...
Jesús Rodríguez Segura's user avatar
0 votes
0 answers
77 views

Room DataBase in KMP

I have a database ( mysqlite_sampel.db), I want to put it in the files folder and use the information in it, how can I use a database that is in the files folder both in Android and iOS and ROOM and ...
Aristotele Songhori's user avatar
0 votes
0 answers
37 views

How to Add Room Library to a Compose Desktop App Created with IntelliJ IDEA Built-in Wizard?

I'm making a Compose Desktop app using IntelliJ IDEA Community Edition. I started the project with the built-in wizard (not the web version). I'm having trouble finding clear instructions on how to ...
Abdo21's user avatar
  • 639
2 votes
0 answers
74 views

Kotlin Multiplatform and Room: Cannot find implementation for model.database.AppDatabase

I'm making an app with Kotlin Multiplatform. I encountered an error when implementing the Room database, using this tutorial. The error goes like this (Note that this error appears while debugging on ...
Opicak's user avatar
  • 21
0 votes
1 answer
40 views

How does Room DB with Flow works?

I’m experimenting with Room and Coroutines Flow observables in a simple project, but I'm encountering an issue where the Flow emits multiple times. In the app, I’m fetching all data from the user's ...
Ranpu's user avatar
  • 1
0 votes
0 answers
30 views

java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.reflect.InvocationTargetException

I am trying to use MVVM with Room DB in my android app but getting this exception on the splashActivity. It was working fine until i added viewmodel and observers class SplashActivity : ...
Sahar Batool's user avatar
1 vote
0 answers
28 views

How can I implement a feature to export and import database to my app in android(Kotlin)

How can I add feature to export and import database to my app. currently I am learning the data persistence using room. I have created a database and I want that my user should be able to export and ...
kunal sahu's user avatar

15 30 50 per page
1
2 3 4 5
152