majidgolshadi / Android-Download-Manager-Pro

Android/Java download manager library help you to download files in parallel mechanism in some chunks.
MIT License
1.61k stars 317 forks source link

Downloading stop on 200 percent check using following url :- https://dl.jatt.link/lq.jatt.link/cdn9/15c435395acc88f5ece743aa1a5641e6/jyszv/Guerrilla War-(Mr-Jatt.com).mp3 #50

Open gurjantbhullar34 opened 6 years ago

majidgolshadi commented 6 years ago

Would you please describe your scenario ?

gurjantbhullar34 commented 6 years ago

Downloading not stop some times after 100% it stops on 200% and take double of total memory. And sometimes on 0 byte show download complete. On 13-Jan-2018 5:47 pm, "Majid Golshadi" notifications@github.com wrote:

Would you please describe your scenario ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/majidgolshadi/Android-Download-Manager-Pro/issues/50#issuecomment-357430704, or mute the thread https://github.com/notifications/unsubscribe-auth/AdmEWSvZR4kLeEZzq1Hah2JuyaU_nBXpks5tKJ7dgaJpZM4QEM2I .

majidgolshadi commented 6 years ago

That's sound strange. As you can see in library we use observer design pattern to get from any worker how log does it download from what part that is assign to. Maybe we have some problem with that or in some cases we lost file download status. We have to check it in exact scenario that you face to.

gurjantbhullar34 commented 6 years ago

In some URLs like following url :- https://dl.jatt.link/lq.jatt.link/cdn9/15c435395acc88f5ece74 3aa1a5641e6/jyszv/Guerrilla War-(Mr-Jatt.com).mp3

when i download mp3 song from above url it stop downloading on 200%. Example if my song size is 2MB then it stop downloading on 4MB. And some times it show download complete on 0byte file but file size was 2 MB. It happened if connection timeout or any other error occur. Please solve it as soon as possible.

You can test case by installing my app from following link in which i am using your library.

https://mj-tube.en.aptoide.com/

On Thu, Jan 18, 2018 at 1:52 AM, Majid Golshadi notifications@github.com wrote:

That's sound strange. As you can see in library we use observer design pattern to get from any worker how log does it download from what part that is assign to. Maybe we have some problem with that or in some cases we lost file download status. We have to check it in exact scenario that you face to.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/majidgolshadi/Android-Download-Manager-Pro/issues/50#issuecomment-358432497, or mute the thread https://github.com/notifications/unsubscribe-auth/AdmEWSQPftW-ViqAG2jWx6z7yxbM99E6ks5tLlZwgaJpZM4QEM2I .