Android Room database file is empty

KKSINGLA picture KKSINGLA · May 16, 2018 · Viewed 15.2k times · Source

Using room in android for database. When I tried to see the data in sqlviewer then no tables found in database file Myapp.db file is empty. Data/data/packageName/databases/Myapp.db

Answer

kosas picture kosas · May 28, 2018

Go to folder Data/data/packageName/databases/ There has to be three files .db, .db-shm, .db-wal, copy all three files to one location and then open your Myapp.db these two extra files are needed to open db file