简体   繁体   中英

What's the best way to download multiple non-http downloads on android

I'm working on an p2p download apps and my goal is to have the best performance that i can get to download torrent files. I know that these download methods exist:

what I need is to be able to have unlimited amount of downloads at the same time.

Any idea? thanks

If not http, you will need to find a library that works ont he protocol you choose

As for setting up multithreading, you should defintely use the guava libraries to help create your ThreadPoolExecutors. Its doubtful you will be able to get unlimited simultaneous downloads all happening at the same time, but you can queue a bunch of them.

here is the User Guide for guava

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM