Hello,
I am poritng a b4a project to b4i. I use:
then i use
I can see the "Class (b4i_httpjob) instance released." message but nothing happens ( I do not get any log , error or anything )and lblstatus.texr is not changing . I am missing something but i cant find what. Any Ideas ?
I am poritng a b4a project to b4i. I use:
B4X:
ExecuteRemoteQuery("SELECT version FROM global", "CHECKVERSION")
then i use
B4X:
Sub JobDone(Job As HttpJob)
Log(Job.JobName)
If Job.Success Then
Dim res As String
res = Job.GetString
Log("Response from server: " & res)
Dim parser As JSONParser
parser.Initialize(res)
Dim parser2 As JSONParser
parser2.Initialize(res)
Select Job.JobName
Case "CHECKVERSION"
lblstatus.text="checking"
End Select
Else
hd.toastmessageshow("Error: " & Job.ErrorMessage, True)
lblstatus.Text = "Status: Connection Failed"
btnlogin.enabled = True
hd.progressdialoghide
End If
Job.Release
End Sub
I can see the "Class (b4i_httpjob) instance released." message but nothing happens ( I do not get any log , error or anything )and lblstatus.texr is not changing . I am missing something but i cant find what. Any Ideas ?
Last edited: