1

Running into a problem here. In the past, I was able to pull the Room DB file from /databases (along with db-shm and db-wal), and then view the table in DB Browser for SQLite. I would use ADB to pull the files to my PC, and then view the tables.

Now (a few months after last doing this), the DB file appears to be empty in SQLite viewer. I know for a fact that it has data (I can programmatically read from it in my app).

I also pulled it using device explorer and got the same result (no tables in db).

Has anyone else noticed this problem or have a solution? I have searched SO, and all of the 'empty db' instances seem to be related to not pulling all three files, or the DB actually being empty. I have all three files, and the db is definitely not empty.

Thanks in advance!

AzraelPwnz
  • 506
  • 2
  • 12
  • i have faced the same problem i just restarted Android studio and emulater and pull out DB again delete old db from my pc desktop and drop it to Sqlite Browser and all was ok . – EL TEGANI MOHAMED HAMAD GABIR Aug 30 '18 at 14:51
  • You can get your answer through this link: Visit: https://stackoverflow.com/questions/49394683/android-room-database-wont-export-all-the-data/53167254#53167254 – Ali Azaz Alam Dec 24 '18 at 05:52
  • Does this answer your question? [Android room database won't export all the data](https://stackoverflow.com/questions/49394683/android-room-database-wont-export-all-the-data) – davkutalek Apr 01 '22 at 21:05

1 Answers1

1

Even after uninstalling the app, and repopulating the DB...it was still showing up as blank.

Tried restarting Android Studio to no avail.

Ended up rm * in /databases from adb shell and relaunching the app. This resolved the issue. I was able to adb pull and view the tables.

Thanks for you input @Al Tegani

AzraelPwnz
  • 506
  • 2
  • 12