I have a need to build an App which will synchronize device database with the same SQLite database on PC. I know there are several methods of doing this so I would like to start with the method which will be the easiest (for me) to implement - as I just started with B4A.
I already have a desktop App which connects to SQLite on a PC and I can manipulate records the way I want. One of the methods of synchronization which I was thinking about, is to connect the device through USB (which will be seen as an external drive i.e. E:\), then connect to the database with my desktop program, then run Sync. Obviously device database must have implemented ContentProvider so it can be accessed from another App (I don't know how to do it).
Initially the database will be small (probably 3-5 tables), and I think it is rather irrelevant to the method. My problem is that Basic as well as Android are for me completely new animals, and need a lot to study how to 'pu them on the leash'.
Another way would be to access database on the PC (from the device) then do the update (but this seems to be much more complicated).
As third method I would need to synchronize with remote MySQL server, so synchronization will have 3 modes like this:
1) SQLite.Device <--> SQLite.PC (might be initiated either from Device or PC, which ever is easier)
2) SQLite.Device <--> MySQL.Internet (this will be App on device using HTTP services)
3) SQLite.PC <--> MySQL.Internet (this will be desktop App which I'm working on)
I need your advice on how to aproach this , what are possible issues and complications, advantages etc. Most of all I need an easy to implement solution, starting with option (1)
I would appreciate any comments and sugestions.
Thanks - Art
:sign0104:
I already have a desktop App which connects to SQLite on a PC and I can manipulate records the way I want. One of the methods of synchronization which I was thinking about, is to connect the device through USB (which will be seen as an external drive i.e. E:\), then connect to the database with my desktop program, then run Sync. Obviously device database must have implemented ContentProvider so it can be accessed from another App (I don't know how to do it).
Initially the database will be small (probably 3-5 tables), and I think it is rather irrelevant to the method. My problem is that Basic as well as Android are for me completely new animals, and need a lot to study how to 'pu them on the leash'.
Another way would be to access database on the PC (from the device) then do the update (but this seems to be much more complicated).
As third method I would need to synchronize with remote MySQL server, so synchronization will have 3 modes like this:
1) SQLite.Device <--> SQLite.PC (might be initiated either from Device or PC, which ever is easier)
2) SQLite.Device <--> MySQL.Internet (this will be App on device using HTTP services)
3) SQLite.PC <--> MySQL.Internet (this will be desktop App which I'm working on)
I need your advice on how to aproach this , what are possible issues and complications, advantages etc. Most of all I need an easy to implement solution, starting with option (1)
I would appreciate any comments and sugestions.
Thanks - Art
:sign0104: