Restful service call every moment in android
<p>I am working on application which updates UI every moment after getting data from web-service. I know we can call AsyncTask every-time to get data, but this look weird. There is also way of getting data in background service and receiving its broadcast in Activity. But again if there is no changes in database, we are using resources. Is there any way to check if changes occur in database then fetch data.</p>