with code directly from the forums, the response comes back over 30 seconds after the httpjob request. A couple of notes:
1. response in under a second using b4j, same response using ios/swift
2. response in under a second using b4a webview, same response using firefox browser on PC or mac
the test code (from the sample on the forum) is below:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Test2Layout")
'WebView1.LoadUrl ("http://www.fly.faa.gov/flyfaa/xmlAirportStatus.jsp")
Dim j As HttpJob
j.Initialize("j", Me)
j.Download("http://www.fly.faa.gov/flyfaa/xmlAirportStatus.jsp")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
Else
Log(j.ErrorMessage)
End If
j.Release
End Sub
Any suggestions would be helpful, as this seems unusual
Thanks in advance,
1. response in under a second using b4j, same response using ios/swift
2. response in under a second using b4a webview, same response using firefox browser on PC or mac
the test code (from the sample on the forum) is below:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Test2Layout")
'WebView1.LoadUrl ("http://www.fly.faa.gov/flyfaa/xmlAirportStatus.jsp")
Dim j As HttpJob
j.Initialize("j", Me)
j.Download("http://www.fly.faa.gov/flyfaa/xmlAirportStatus.jsp")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
Else
Log(j.ErrorMessage)
End If
j.Release
End Sub
Any suggestions would be helpful, as this seems unusual
Thanks in advance,