Here what I want to do..
using the httputils2, I want to do a basic post, and wait for the job to be completed...then submit another job, and wait for it to be completed, etc...
using a do while...loop with doevents, I have waited for the JobDone event to fire, but it never does, or the doevents is causing the program to miss it..
There are several ways to implement it.
You can add all the jobs to a List.
Submit the first job. In JobDone find the index of the finished job in the List (with List.IndexOf).
B4X:
If index < List.Size - 1 Then
Dim j As Job = List.Get(index + 1)
j.Download(...)
Else
'Finished!
End If
Hello Erel,
I have the same problem but in my case it is not clear how many times I need to call the webservice.
I will know it after the first call then I can create a list and call N times..
any suggestions?