I have an app where all the data are provided from a pre-populated data base. I opted to use Room database and everything works fine below Android API 25, but then on 25, ..., 28, it seems that the data isn't read at all. There isn't any warning or relevant info in logcat.
This is how I'm initializing the Room Database:
INSTANCE = Room.databaseBuilder(context,
RoomBibleDatabase.class, "My_Database")
.allowMainThreadQueries() // Just for testing...
.build();
My pre-populated database file is in src/main/assets/My_Database .
I've tried some different things including adding permissions for reading/writing on my Manifest.xml file:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
It's being really frustrating to solve this, since I don't have any error or warnings feedback.
Can anyone tell me if is there any restriction from Android API versions, or do you have any other suggestion for why this is happening?
Thanks in advance!