2013-05-09 69 views
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 
+0

可能的複製 - http://stackoverflow.com/questions/10738623/copy-database-from-assets-folder-in-unrooted-device – 2013-05-09 13:28:00

+0

@StevenByle - 我已經通過這個鏈接了更早但收益相同的結果。 – 2013-05-09 14:09:05

回答

相關問題