14.03.2011 19:40, David Williams ?????:
How would I go about copying the database file from the emulator (or
phone) to my computer? Where would I find the db?
To copy from the emulator:
- In Eclipse, switch to DDMS perspective (toolbar on the right side or
Window - Open Perspective - Other - DDMS)
- Select the emulator in the pane on the left
- Select the "File Explorer" pane on the right
- Navigate to /data/data/<your package name>/databases
- Press the icon in the top-right corner that looks like a floppy disk
with a red arrow
Alternatively:
- From the host computer's command window, type:
- "adb pull /data/data/<your package name>/databases/<your database file
name>"
to pull the file to the host computer.
I do use Eclipse, but am not familiar with DDMS view (oe even what it
is) nor the adb pull command.
http://developer.android.com/guide/developing/debugging/ddms.html
http://developer.android.com/guide/developing/tools/adb.html
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en