且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

哪里Android模拟器店SQLite数据库?

更新时间:2023-02-27 08:11:27

模拟器的文件系统,不映射到您的硬盘驱动器的目录。仿真器的磁盘图像保存为图像文件,您可以通过任意的Eclipse(查找工具栏上的G1-看图标)来管理,或者通过模拟器二进制文件本身(对选项的说明运行仿真器 - 帮助)

The filesystem of the emulator doesn't map to a directory on your hard drive. The emulator's disk image is stored as an image file, which you can manage through either Eclipse (look for the G1-looking icon in the toolbar), or through the emulator binary itself (run "emulator -help" for a description of options).

你***使用亚行通过命令行来插孔插入正在运行的模拟器。如果你能得到具体的目录和文件名,你可以做一个亚行拉来获取数据库文件关闭模拟器,并到您的普通硬盘。

You're best off using adb from the command line to jack into a running emulator. If you can get the specific directory and filename, you can do an "adb pull" to get the database file off of the emulator and onto your regular hard drive.

修改:删除了建议,这适用于无根的设备太 - 它仅适用于仿真器,以及你在哪里工作,亚行作为root设备

Edit: Removed suggestion that this works for unrooted devices too - it only works for emulators, and devices where you are operating adb as root.