I have a database which is prepopulated with some ...
# room
v
I have a database which is prepopulated with some tables which is working fine. I have prepopulated my db. like this
Copy code
Room.databaseBuilder(
        get(),
        AppDatabase::class.java,
        APP_DATABASE
         )
        .createFromAsset("app.db")
        .fallbackToDestructiveMigration()
        .build()
the problem I am facing is that. when user adds his own data it got inserted correctly and displayed on my screen. when I move app to the background and remove it from there and reopen the application. I don't se my data and only the default data is present there. any help would be appreciated