Android Question HttpJob and Sending Message to waiting Queue ...

jnbarban

Member
Licensed User
Longtime User
Hello,
We have a problem with the HttpJob:
The JobDone never runs, and the log contains the following message:
"sending message to waiting queue of uninitialized activity (submitjob)"

my code :
B4X:
Dim job As HttpJob
    job.Initialize("", Me)
    job.Download("https://www.google.com")
'    job.PostString("https://www.google.com","")
    Wait For (job) JobDone(job2 As HttpJob)
    If job2.Success Then
        Log(job2.GetString)
    End If
    job2.Release
    
    Log("ca sort")

the log attached
log.png


Thank you
 

jnbarban

Member
Licensed User
Longtime User
Sorry for the wrong forum. How do we change this?

and we are using okhttputils2 v2.96.
This is an old project that we are updating.
This code works in a test project but not in our application, and we can't find out why.
I saw in another post that we get this message when the activity is paused, but this is not the case.
 
Upvote 0

jnbarban

Member
Licensed User
Longtime User
Hello,
thanks for your help, i managed to get it to work.
I reinitialized the manifest, and it unblocked immediately.
But I don't understand why yet because the old and the new are the same
 
Upvote 0
Top