• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Copy Sqlite db from assets to internal storage(Android+cordova)

Dear
I was trying copy databases from assets to internal storage, yet I used java android("copy database") and cordova("call & read & wirte database"). Moreover, everything in emulator was right and I could retrieve data of table in database but when I run of cell phone or tablet didn't recognize table and retrieve data however I am sure that copy db was done because I took to export on sdcard before call database. I suppose need to permission and I don't have clue about this problem.

Features:
- cordova 3.4.0.js
-cordova-2.7.0.jar
- Databases.db
- 1
There are two files:
/data/data/[Package name]/app_webview/databases/Databases.db
/data/data/[Package name]/app_webview/databases/file__0/1
 

Attachments

  • assets.png
    assets.png
    6.5 KB · Views: 177
  • path.png
    path.png
    20.2 KB · Views: 200
Last edited by a moderator:
Application Development thread moved to the Development forum for better exposure.:)
 
Hello and welcome to the forums . may I ask what was you doing this for and what device was you performing this to .
 
Back
Top Bottom