开发者

How to pause and resume download from remote server to SDCard

I was wondering, is it possible to pause download, exit the app and resume download of a file from remote Server to the phone's SDCard upon re-start of the app.

And follow up question: I have a code that downloads through 开发者_运维技巧HTTP. Can I also do it via FTP? Which is better?

Any suggestions will be highly appreciated.


This question has some info on resuming downloads in Android. Basically you need to check for a partially completed download, and if it exists, check the file size. You can then pass this value in the header of your request, to resume the download from that location.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜