Skip to content Skip to sidebar Skip to footer

Detect New Data When Call Is Given To Webservice

I have app, in which i am refreshing that app in particular amount of time. Each time the call is given to webservice and all the messages in database are loaded to listview. Its d

Solution 1:

Add one field(i.e. Status) in database. And when you call your service and its return all message from database then status need to change with 1 (0 means still webservice not fetch, 1 means its fetch at android side). So after new records inserted your service only fetch the records which status have 0.

I hope this will help you.

Post a Comment for "Detect New Data When Call Is Given To Webservice"