When I build an application in debug or release mode it works without any problems and connects to the server via the jOkHttpUtils2 library (2.92).
When I build an application as a "Standalone Package" the application does not enter the part of the code responsible for downloading json from the server.
Example
I read the post https://www.b4x.com/android/forum/t...-way-to-distribute-standalone-ui-apps.117880/.
Unfortunately I did not find anything about it and adding packages ends up being a problem.
When I build an application as a "Standalone Package" the application does not enter the part of the code responsible for downloading json from the server.
Example
Example:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("url to my server")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim parser As JSONParser
parser.Initialize(j.GetString)
Dim root As List = parser.NextArray
For Each colroot As Map In root
If colroot.Get("results")<>Null Then
If colroot.Get("results")="fail" Then
xui.MsgboxAsync("Podaj prawidłowy kod logowania lub listy","Logowanie")
Exit
End If
If colroot.Get("results")="norecords" Then
xui.MsgboxAsync("Brak zadań dla wybranej listy","Uwaga")
Exit
End If
End If
board.Show
Exit
Next
End If
j.Release
I read the post https://www.b4x.com/android/forum/t...-way-to-distribute-standalone-ui-apps.117880/.
Unfortunately I did not find anything about it and adding packages ends up being a problem.