Hello ,
I am trying to run the same program at console mode that I ran previously at UI mode.
Below is the code
As this is my first program at Non-UI, I am lost
please advice on this.
Thanks
I am trying to run the same program at console mode that I ran previously at UI mode.
Below is the code
B4X:
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
'Log("Hello world!!!") ---> This is coming
Private j As HttpJob
j.Initialize("",Me)
j.Download("https://api.first.org/data/v1/countries")
Wait For (j) JobDone (j As HttpJob)
If j.Success Then
Dim jp As JSONParser
jp.Initialize(j.GetString)
Dim jroot As Map=jp.NextObject
Dim cdata As Map=jroot.Get("data")
For Each ctrykey In cdata.Keys
Log(cdata.Get(ctrykey)) ---> No log showing here
Next
End If
j.Release
End Sub
As this is my first program at Non-UI, I am lost
please advice on this.
Thanks