I'm currently working on creating a Download Manager for Android. In order to optimize the download I need to download the same file using multiple connections to the server. (ie. the same technique used in Internet Download Manager used in Windows.) The thing is I don't know how to create several HTTP connections and download the same file. I hope you can help me.. Thanks in advance!
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Spawn off a few threads which request part of the file via the Header Content-Range
keyword. see Reading the first part of a file using HTTP