Syncing SQLite database with remote mysql data in android

后端 未结 2 1485
礼貌的吻别
礼貌的吻别 2021-02-10 14:05

How to synchronise SQLite database and remote MySQL data in android? To make it clear, I want to know how syncing between sqlite data and remote mysql works .. i.e., when the r

2条回答
  •  难免孤独
    2021-02-10 14:09

    I guess you can use broadcast receiver inside a service of your android application. If not you can write a service and inside the service you can use a timer to send http request to the server and keep syncing. To get a knowledege about syncing a SQlite database with remote mysql database refer to this tutorial and if you need it to happen without a button press then implement the code in the following tutorial inside a service and remember to use a timer. TUTORIAL LINK

提交回复
热议问题