Android: how to know file located in web server is modified?

前端 未结 2 1204
梦如初夏
梦如初夏 2020-12-25 09:10

I am parsing Xml file located in web server and storing parsed data in to database. for my app I am using data from database. I need to parse the xml file only if the file i

2条回答
  •  旧时难觅i
    2020-12-25 09:14

    Calculate the MD5 of the file. You can save the old one and compare it?

    If you don't know how, check out this for example: Getting a File's MD5 Checksum in Java

提交回复
热议问题