Just follow some steps for sending data from Android to MySQL:
JSONobject of your data using
- post that as an string to your
Web Servicethat might be in
PHPor whatever you prefered.
- process to parse json and insert data in to
Same as from MySQL to Android:
Web Servicethat displays your data in
- 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 likelast sync date/time.
There are some tutorial that will help for android JSON Parsing and
PHP JSON Parsing.