In this simple code , jobDone never get called .
What am I missing ?
I tried with and without Wait For
HttpUtils2_NONUI(Version 2.62)
What am I missing ?
I tried with and without Wait For
HttpUtils2_NONUI(Version 2.62)
B4X:
Sub AppStart (Args() As String)
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles="&"b4x")
Wait For(j) JobDone(j As HttpJob)
If j.Success Then
'work with result
Log("Wait For(j) JobDone"&j.GetString)
Else
Log("Err")
End If
j.Release
StartMessageLoop
End Sub