Espinosa4 Active Member Licensed User Longtime User Feb 8, 2024 #1 Hi, I'm sorry for my low level but I have a doubt ... how can I pause the downloads using rangedownloader? In B4xPages, the downloads are downloading even I change the pages view and I don't know how pause them. Cheers
Hi, I'm sorry for my low level but I have a doubt ... how can I pause the downloads using rangedownloader? In B4xPages, the downloads are downloading even I change the pages view and I don't know how pause them. Cheers
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2024 #2 There is no built-in support for pausing the download. Why do you need to pause the download? Check the source code. You can set Tracker.CurrentLength = Tracker.TotalLength. This will stop the download. You can later call Download again and it will be resumed. Upvote 0
There is no built-in support for pausing the download. Why do you need to pause the download? Check the source code. You can set Tracker.CurrentLength = Tracker.TotalLength. This will stop the download. You can later call Download again and it will be resumed.
Espinosa4 Active Member Licensed User Longtime User Feb 8, 2024 #3 Erel said: There is no built-in support for pausing the download. Why do you need to pause the download? Check the source code. You can set Tracker.CurrentLength = Tracker.TotalLength. This will stop the download. You can later call Download again and it will be resumed. Click to expand... Thank you so much @Erel I really appreciate your help. I have a problem, surele it's my fault but when the downloads start and I back to the MainPage, the downloads is still running (it's ok) but when I back to the download page, they resume but in a strange form and when I tried to uncompress the downloads (they are zips) It seems that header file is corrupted, but if the program starts to download the files and I kill the app and back again to the downloads page, everything starts correctly and the files aren't corrupted. Sorry for my English. It is for that reason I want to stop the downloads and resume again when the page appears again. Cheers and thank you so much indeed for your help. Last edited: Feb 8, 2024 Upvote 0
Erel said: There is no built-in support for pausing the download. Why do you need to pause the download? Check the source code. You can set Tracker.CurrentLength = Tracker.TotalLength. This will stop the download. You can later call Download again and it will be resumed. Click to expand... Thank you so much @Erel I really appreciate your help. I have a problem, surele it's my fault but when the downloads start and I back to the MainPage, the downloads is still running (it's ok) but when I back to the download page, they resume but in a strange form and when I tried to uncompress the downloads (they are zips) It seems that header file is corrupted, but if the program starts to download the files and I kill the app and back again to the downloads page, everything starts correctly and the files aren't corrupted. Sorry for my English. It is for that reason I want to stop the downloads and resume again when the page appears again. Cheers and thank you so much indeed for your help.
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2024 #4 You don't need to pause and resume the downloads. The problem is somewhere else. Make sure NOT to use B4XPage_Appear / Disappear events. Upvote 0
You don't need to pause and resume the downloads. The problem is somewhere else. Make sure NOT to use B4XPage_Appear / Disappear events.
Espinosa4 Active Member Licensed User Longtime User Feb 8, 2024 #5 Thank @Erel I undertood how it works. Thank you very much indeed. Upvote 0