开发者

Android: Is there a component that can sync files with those on a web server?

开发者 https://www.devze.com 2023-02-12 12:30 出处:网络
Of course I could write it myself, but I\'m wondering if anyone knows of an open-source android compo开发者_JS百科nent / example source code that will:

Of course I could write it myself, but I'm wondering if anyone knows of an open-source android compo开发者_JS百科nent / example source code that will:

  • Take a remote URL (http://www.example.com/foo.txt) and a local filename (/sdcard/ben/foo.txt)
  • If the local file exists, check date/filesize etc, against the remote version by doing a HEAD request
  • Download the file if missing or out of date

Cheers!


The android dropbox app does that, but afaik there is no component that does it. Maybe you can integrate dropbox via an intent. Otherwise you will have to roll your own.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号