Copying SQLite db from Android to PC (and back again)? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Copying SQLite db from Android to PC (and back again)? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I have created a db (SQLite) in my Android device (emulator), I would like to copy it from the device to my PC for easy editing.

Is this possible?

Where does the application place the db file and how do I get access to it? Obviously it is stored on the virtual device (emulator)

Answer

Fire up DDMS in Eclipse or standalone. Then go to the File Explorer tab. Open data/data/[app name]/databases

There you will find [databasename].db

Highlight the file and then in the corner of the DDM window there will be an icon that shows an old school floppy disk with a red arrow. Click that and you will be given a file browser window to select where you want to copy the file to your hard drive.

We are here to answer your question about Copying SQLite db from Android to PC (and back again)? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji