1. AC Question's Avatar
    I'm making an app where we can save the user details such as name,contacts...etc these all the thing we are storing in sqlite first then we want that all the thing which are stored in sqlite are directly goes to the server when user connected to the server...if the user is offline then user see all his detail which he save.if he want any modification such as add,edit,delete all the thing they can do it in offline mode also...while connecting to the server these thing change in the online server.So how i can make an app like this...how i can synchronise sqlite to the online server
    04-22-2016 05:32 AM
  2. Rukbat's Avatar
    Either send the .db file to the server or send the data itself to the server. (I usually create a database on the server with the same fields as the one on the program, then add one - the user name, ID or whatever you use to identify the user. Then I copy the local database to the remote database. If you use MySQL on the server, just update the records on the server - use REPLACE INTO - REPLACE INTO table SET id = 42, foo = 'bar'; Loop through the entire recordset.)
    04-22-2016 12:54 PM

Similar Threads

  1. Replies: 5
    Last Post: 02-12-2017, 07:44 AM
  2. Replies: 3
    Last Post: 05-01-2016, 05:10 AM
  3. Replies: 3
    Last Post: 04-23-2016, 02:50 PM
  4. How do I root my Galaxy Tab E
    By AC Question in forum Ask a Question
    Replies: 2
    Last Post: 04-22-2016, 01:54 PM
  5. Replies: 1
    Last Post: 04-22-2016, 12:56 PM