Android Question Simple progress on http download

johnaaronrose

Active Member
Licensed User
Longtime User
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
if you have problems deleting modules, Erel has an example
download with progress




 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
@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
Top