J johnaaronrose Active Member Licensed User Longtime User Feb 2, 2022 #1 I asked this question on B4J by accident. It referred to Line 10 in code (from Feb 2, 2021 post of https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463) when compiling gives "Unknown member: taskidtojob" error: B4X: Dim TaskToJob As Map = HttpUtils2Service.TaskIdToJob That's when I have OkHttputils library included. If I include OkHttpUtils2 library, I get "HttpUtils2Service is declared twice. You should either remove the library reference or the code module.". What should I do?
I asked this question on B4J by accident. It referred to Line 10 in code (from Feb 2, 2021 post of https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463) when compiling gives "Unknown member: taskidtojob" error: B4X: Dim TaskToJob As Map = HttpUtils2Service.TaskIdToJob That's when I have OkHttputils library included. If I include OkHttpUtils2 library, I get "HttpUtils2Service is declared twice. You should either remove the library reference or the code module.". What should I do?
Lucas Siqueira Active Member Licensed User Longtime User Feb 2, 2022 #2 you can rename your HttpUtils2Service module to HttpUtils2ServiceJohn and OkHttpUtils2 to OkHttpUtils2John... so you won't have conflict... just remembering to change the declared variables that use these modules Upvote 0
you can rename your HttpUtils2Service module to HttpUtils2ServiceJohn and OkHttpUtils2 to OkHttpUtils2John... so you won't have conflict... just remembering to change the declared variables that use these modules
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2022 #3 Remove those modules. You don't need them. Upvote 0
Lucas Siqueira Active Member Licensed User Longtime User Feb 2, 2022 #4 if you have problems deleting modules, Erel has an example download with progress [B4X] RangeDownloader - resumable downloads RangeDownloader uses http range feature to download the file in chunks. It will resume the download from the previous point, even if the app was previously killed. It first sends a HEAD request to test whether this feature is supported. Note that you need to delete the target file if you want to... www.b4x.com [Solved] Download Files from server with progress Hi all How can I do something like this https://www.b4x.com/android/forum/threads/download-huge-files-with-httputils2.30220/ from B4J? www.b4x.com Upvote 0
if you have problems deleting modules, Erel has an example download with progress [B4X] RangeDownloader - resumable downloads RangeDownloader uses http range feature to download the file in chunks. It will resume the download from the previous point, even if the app was previously killed. It first sends a HEAD request to test whether this feature is supported. Note that you need to delete the target file if you want to... www.b4x.com [Solved] Download Files from server with progress Hi all How can I do something like this https://www.b4x.com/android/forum/threads/download-huge-files-with-httputils2.30220/ from B4J? www.b4x.com
J johnaaronrose Active Member Licensed User Longtime User Feb 2, 2022 #5 @Erel I've removed those libraries. I'm now getting on compiling: B4X: B4A Version: 11.20 Parsing code. Error Error parsing program. Error description: Unknown type: httpjob Are you missing a library reference? Error occurred on line: 363 (Main) Private Sub TrackProgress (j As HttpJob, Stop() As Boolean, TaskId As Int) Upvote 0
@Erel I've removed those libraries. I'm now getting on compiling: B4X: B4A Version: 11.20 Parsing code. Error Error parsing program. Error description: Unknown type: httpjob Are you missing a library reference? Error occurred on line: 363 (Main) Private Sub TrackProgress (j As HttpJob, Stop() As Boolean, TaskId As Int)
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2022 #6 You need to add a reference to OKHttpUtil2 library. Upvote 0
J johnaaronrose Active Member Licensed User Longtime User Feb 3, 2022 #7 @Erel Thanks. Compiles Ok now. Upvote 0