If either data=null or new_timestamp > data_timestamp then.Issue a HTTP Head-Request to the URL and option new_timestamp from Last-Modified Header.I came up with the following workflow (pseudo-code): I thought about using the Last-Modified-Header of HTTP for this. To keep it up to date, I need to check for changes in the file every hour.Īs the remote File can get quite large I want to download it only if it is different from the version which was previously downloaded. The data from the json-file is saved on the device. ![]() This information is stored in a json-file. I want to write a android application which needs data from the web.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |