Relative Content

Tag Archive for androidkotlinandroid-jetpack-composeandroid-room

Getting query list from Room to populate DropDownMenu

Building a database with multiple tables. The tables are used to track component usage but I’m having a hard time getting a Query List to populate in a DropDownMenu. I want to limit the users to the List so my Foreign Key will work easier. When I have Log.d output what should be the List it always outputs a blank list []. Hopefully the code below is enough to show my issue.

Room database reset after app close and reopen

I created a Compose app with a room database and flows, which is loading data from an assets database. Then I add favorites and more stuff. It works and stores favorites until I close the app and reopen it. Then, all favorites are lost and the database seems to be the same as the assets database. Any idea about what I’m doing wrong?

Room database reset after app close and reopen

I created a Compose app with a room database and flows, which is loading data from an assets database. Then I add favorites and more stuff. It works and stores favorites until I close the app and reopen it. Then, all favorites are lost and the database seems to be the same as the assets database. Any idea about what I’m doing wrong?