Android Question download multiple files via HttpUtils2

Discussion in 'Android Questions' started by ilan, Apr 30, 2015.

  1. ilan

    ilan Expert Licensed User


    i would like to download multiple files about 50 (all together about 2.5MB) now i am doing it via ftp and it takes to much i tried 8 files and it took about 30 second

    maybe httputils2 will be faster

    can i download more the one file in 1 job?
    i dont want to create 50 different jobs!!!

  2. walterf25

    walterf25 Well-Known Member Licensed User

    I don't you can, the way i've always done it is by starting the next job as soon as the previous one is done. Maybe Erel can answer this better.

    thedesolatesoul likes this.
  3. ilan

    ilan Expert Licensed User

    this is not effective for me, i would like to download more then one file at one time and also if file nr10 fail to download the chain will be cut and no more file will be downloaded so this is not a good solution for me

    thanx anyway,..

    i am 100% sure there is a way i also belive i saw it in the forum but cannot find it, will look again ...
  4. KMatle

    KMatle Expert Licensed User

    You are allowed to restart a job which has failed :D I do it in a controlled (!) chain. If a job should fail, I repeat it.

    As I have some kind of a cms system I only load the files the app did not load before (caching). So for me the single file download is a must have for me (to reduce the traffic).

    Other solution: Zip all the files you need to download (with php) and unzip that one big file on the device. I didn't try that so far.
  5. ilan

    ilan Expert Licensed User

    this is exactly what i am trying, zip all files and unzip.

  6. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Why not? Thats the only way to download all the files in parallel.
    KMatle likes this.
  7. ilan

    ilan Expert Licensed User

    hmm.. if thats the only way than i wont do it like this.

    i am now downloading 1 file (zip) and unzip it after download (much_faster AND less_code = happy) :D.
    Last edited: May 1, 2015
    KMatle likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice