Erel shows an interest code to follow the HTTP activity in the app, the link is:
Monitor HTTP Requests
However the code don't work with B4XPages, I put the code in a Utility.bas module, and called it in the 3 pages B4XPages example, in B4XMainPage.bas like this:
I got the run time error: Object was not initialized (UIViewController) in this line of the Monitor code:
Looks like Page1 is not defined when B4XPages is running, or maibe I need to send the Page1 as a parameter to the monitor (since is scope of Page1 is in another module)
Monitor HTTP Requests
However the code don't work with B4XPages, I put the code in a Utility.bas module, and called it in the 3 pages B4XPages example, in B4XMainPage.bas like this:
B4X:
Sub ServerSwitcher() As ResumableSub
Dim j As HttpJob
Dim Resultado As String
Dim parser As JSONParser
'Log("Inicio Main ServerSwitcher")
j.Initialize("",Me)
j.Download(Main.Servidor & "/version")
Utilidades.MonitorProgress
I got the run time error: Object was not initialized (UIViewController) in this line of the Monitor code:
B4X:
Page1.Title = $"$1.2{fraction * 100}%-${url}"$
Last edited: