Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How Do I Synchronize Data From Server To My App Every 3 and 5 Minutes?

I have a JSON data in a PHP and MySQL website. Now I want to synchronize my data in an Android App every 3 and 5 minutes.

The application will check every 3 and 5 minutes if there's an update in website data.

How can I do that?

like image 358
user2790880 Avatar asked Dec 11 '25 09:12

user2790880


1 Answers

Run a service using the android app and check on server. Do a callout in the background to your server and check for the update. Here is a simple one : http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ You need to do the same in a service. Another tutorial for service : http://www.vogella.com/articles/AndroidServices/article.html

Hope this helps!

like image 147
Adnan Mulla Avatar answered Dec 14 '25 05:12

Adnan Mulla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!