热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

将sqlite数据库从设备复制到PC-CopysqlitedatabasefromdevicetoPC

Ihaveanandroidprogramthatstoresitsinformationinasqlitedatabase.Willitbestraighforwar

I have an android program that stores its information in a sqlite database. Will it be straighforward to copy that db file to a pc once the device is plugged via USB or should a special functionality be written in the program itself to dump the db contents to a file under the /sdcard directory ?

我有一个android程序,它将它的信息存储在一个sqlite数据库中。一旦设备通过USB插入,或者在程序本身中写入一个特殊的功能,将db内容转储到/sdcard目录下的文件,那么将db文件复制到pc上是否会变得更直接?

Thanks

谢谢

1 个解决方案

#1


9  

You can use the adb pull command to read a file from the teathered device to your desktop, e.g. adb pull /data/data/com.foo.bar/databases/MyDatabase

您可以使用adb pull命令将文件从已连接的设备读取到桌面,例如adb pull /data/data/com.foo.bar/database /MyDatabase


推荐阅读
author-avatar
princess-小熙_351
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有