Android get data if data is one hour old from the Web Services
<p>I have the android application where the webservices data is not frequently updated say once in a day.</p>

<p>I have to save data in DB for offline viewing as well, right now I am thinking that, when user clicks an button to get data it checks if the last data entered in DB is one hour old, if no then no downloading from web service if yes then download.</p>

<p>So, at the time I am saving data I will save current time with it , and calculate the difference and get latest data.</p>

<p>Is this a correct approach.</p>

<p>Asmi</p>
