android-room-prepackageddatabase Questions

6

Solved

I'm building an Android application based on an old Android project. In my new application I'm using Room. I have to use the same database that is used in the first project. Furthermore, I've ext...

7

In SQLiteOpenHelper there is a onCreate(SQLiteDatabase ...) method which i used to populate database tables with some initial data. Is there a way to insert some data into Room database table on...
Twoply asked 22/6, 2017 at 10:58

8

Solved

I'd like to use Room with a pre-populated database, but I can't understand how to tell Room where to find my database. I've now put it in src/main/assets/databases and when I create the instance f...
Justajustemilieu asked 30/5, 2017 at 13:38
1

© 2022 - 2024 — McMap. All rights reserved.