Ok, I've read a lot about this issue but I can't understand where is the problem in my app.
This I explain now happens only when the app is started after a device reboot.
The app is opened showing the main activity. I have a button thet call a service "StartService(LicenceCheck)"
The service do a post to a server:
and this is the log
First time the service is called, the http post fail (no JobDone)
After a while I see in the log "*** Receiver (httputils2service) Receive (first time) ***"
After this event, if I try again to call the service it works normally.
Any idea ?
This I explain now happens only when the app is started after a device reboot.
The app is opened showing the main activity. I have a button thet call a service "StartService(LicenceCheck)"
The service do a post to a server:
B4X:
Dim j As HttpJob
j.Initialize("j", Me)
Dim ps As String= .......
j.PostString ("http://.......", ps)
wait for (j) JobDone(j As HttpJob)
and this is the log
B4X:
*** Service (licencecheck) Create ***
** Service (licencecheck) Start **
sending message to waiting queue of uninitialized activity (submitjob)
*** Receiver (httputils2service) Receive (first time) ***
First time the service is called, the http post fail (no JobDone)
After a while I see in the log "*** Receiver (httputils2service) Receive (first time) ***"
After this event, if I try again to call the service it works normally.
Any idea ?