Closed mmp-schmitt closed 5 years ago
@mmp-schmitt In iOS we can do direct file copy to the database directory thats why it works. However, Android doesn't allow us to copy the database file, so to copy the database in Android I have to perform file write operation. So in Android I create a new database and perform write operation on it. You have to follow this for Android -
As a temporary fix I do this
Starting copy of database 1 ... waiting Database 1 signals successful, opening database 1 Starting copy of database 2 ... waiting Database 2 signals successful, opening database 2
However if you have any suggestion, then let me know.
@mmp-schmitt
I have the about the same issue. Could you provide some code to show how you solved this?
you cannot copy multiple databases at once in Android, you have to copy databases one by one. copy one database and then in the success callback of that function, copy the other databasae.
Problem with the Android version. It is working fine on iOS.
I am working with two database. One large database used read-only, the other smaller one in read/write mode. So I am starting the copy procedure of two databases. Once they are copied I open them and start working. This does not work as the plugin seems to use a global variable 'dbname' to store the name of the database. I am discovering the following behavior:
As a temporary fix I do this
This will work.