In my Activity_Create code I submit 2 HttpJob requests, but I only see 1 job request complete. The request which completes is random. Based upon logs that I create on the server, both requests are returning json data. Can I only have 1 request outstanding at once? I'm targeting 4.4.2 and I'm testing this on an emulator running 4.4.2.
Here's part of the HttpJob code:
Here's what I see on the IDE logs:
B4X:
Dim GetVol As HttpJob
GetVol.Initialize("VolunteerList", Me)
GetVol.Download2(url, Array As String("barcode", "VL", "state", 0, "json", ""))
Dim GetItems As HttpJob
GetItems.Initialize("ItemList", Me)
GetItems.Download2(url, Array As String("barcode", "IL", "state", 0, "json", ""))
Here's part of the HttpJob code:
B4X:
Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success Then
Dim res As String
res = Job.GetString
Log("Back from Job:" & Job.JobName )
Log("Response from server: *" & res & "*")
Here's what I see on the IDE logs:
B4X:
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
** Service (httputils2service) Start **
Back from Job:VolunteerList
Response from server: [json data]
Last edited: