Yes of course, its Sync.
You have to create Web Service for that.
Just follow some steps for sending data from Android to MySQL:
- Create
JSON object of your data using JSONObject and JSONArray class.
- post that as an string to your
Web Service that might be in PHP or whatever you prefered.
- process to parse json and insert data in to
MySQL database.
Same as from MySQL to Android:
- Create
Web Service that displays your data in JSON Format.
- then you have to Request to that link and you'll get JSON data, just you have to parse and store into SQLite.
You have to take care about Data Confiction. for that you have to take one that store some value both side like last sync date/time.
There are some tutorial that will help for android JSON Parsing and PHP JSON Parsing.
- For Android
- For PHP
If there is any problem then you can free to ping.
Happy Syncing.
Thank you.