0
我们正试图将存储在资产文件夹中的sqlite
数据库复制到实际电话上的本地目录,但无法这样做。 CheckDatabase
尾巴我们,数据库存在,但代码失败,当我们尝试从手机读取数据。 (也试图通过DDMS
查看数据库时未显示存在)无法将sqlite数据库从资产复制到内部存储器
电话,我们有操作系统,各种人都在抱怨上StackOverflow
,但没有发现任何解决方案2.3.4
锯。
难道这关系到https://code.google.com/p/android/issues/detail?id=949
也试过以下库中,而复制数据库,这也未能提供
https://github.com/jgilfelt/android-sqlite-asset-helper
示例代码和以下错误
sqlite3_open_v2("/mnt/sdcard/Android/data/com.sqliteassethelper.example/files/northwind", &handle, 2, NULL) failed
可能的复制 - http://stackoverflow.com/questions/10738623/copy-database-from-assets-folder-in-unrooted-device – 2013-05-09 13:28:00
@StevenByle - 我已经通过这个链接了更早但收益相同的结果。 – 2013-05-09 14:09:05