When creating internal databases for your Android application, you may be required to test the database structure and the data stored in it. In Eclipse it provides a mechanism to export the files stored in an Emulator. Today I’ll give you the guide to export a particular database from the Emulator.
- First, run the application on the Emulator. If you haven’t run the application this view will be empty.
- Next Go to Windows–> Show view–>Other–>Select ‘File Explorer’ from the show view dialog
- The file explorer view will be added next to the console. Now explore the data folder as follows to find the database you need to export.
data –> data –>Choose the application by the package name –>databases –>Select the database
- After that select “Pull a file from the device” icon on the R.H.S. Then ‘Get Device File’ dialog will appear and you can save your database on your PC.
Thank You! 🙂