Reputation: 75
The sqlite base file is stored in path data/data/my-package-name/databases/mybase.db (Where does Android emulator store SQLite database?)
Sometimes, i get this file on a remote real device and i would like to copy it to android emulator on my Android Studio for debugging. In other words, i want that my application on Android Studio uses this base. How can i do it?
Another possibility: how to copy this base to a my real device who is connected to PC by USB cable
thanks a lot, regards
Upvotes: 1
Views: 1452
Reputation: 164174
Start your emulator.
Open Device File Explorer (a tab button at the bottom right side of Android Studio).
Go to the folder data/data/my-package-name/
.
If there is no subfolder databases
then create it by right clicking on the my-package-name
folder and then New->Directory
where you type databases
and click OK
.
Now right click on the folder databases
and click Upload...
.
Navigate to the SQLite file that you want to copy, select it and click OK
.
Upvotes: 5