I try to create a SQLite database when I first run the program with a single table containing 7 rows, which is designed to map to a table in a MySQL database on a remote server. So my thoughts are:
(1) At the first launch of the application, create a database, a table and the number of rows with the necessary entries.
(2) In all runs (including the first), try the remote MySQL database (over PHP), which contains a table with a timestamp column, and if the timestamp conditions are met (i.e. a new record was placed in the database), all records will then be added to the SQLite database on the Android phone.
If someone can point me in the right direction or give me the base code for any aspect of this, that would be great - thanks.
source share