an-rahulpandey / cordova-plugin-dbcopy

Copy SQLite Database from www folder to default app database location
Apache License 2.0
89 stars 47 forks source link

Plugin copy DB into wrong directory #5

Closed mismej closed 9 years ago

mismej commented 9 years ago

On my android 4.4.2 phone (LG G3 S) it doesnt work. Here is information from logcat:

D/CordovaLog( 2618): DatabasePath = /data/data/com.KartaKontroli/databases/baza.db&&&& dbname = baza.db&&&&DB Exists =false D/CordovaLog( 2618): Inside CreateDatabase = /data/data/com.KartaKontroli/databases/baza.db D/CordovaLog( 2618): Inside copydatabase = /data/data/com.KartaKontroli/databases/baza.dbdbname = baza.db D/CordovaLog( 2618): Inside copydatabase = /data/data/com.KartaKontroli/databases/baza.dbdbname = baza.db

when I try to run database once again it report that database exist but when I try to make query to the database it doesnt work. On iOS it works fine.

an-rahulpandey commented 9 years ago

Download the db from the location /data/data/com.KartaKontroli/databases/ Open it in DB Browser and check if the db contains all the tables and data. Delete the app from device if you want to retest the copy.

mismej commented 9 years ago

It's strange... DB is fine - also when I insert something to it it works fine - only select doesnt return anything (on iOS works fine).

It looks that is not problem with db file. Thanks for help!