Android Question Wait For ...j As HttpJob - can be long... is there a way to exit it ?

Magma

Expert
Licensed User
Longtime User
Hi there...

sometimes the server can be slow... or something wrong from "the other side"...

is there a way to exit the following - for example at 20seconds?:
Code:
    Wait For (j) JobDone(j As HttpJob)

any idea.... or tip ?

Thanks in advance
 
 
Upvote 0
Well i know that... but sometimes not "really" working... keep trying to load and not returning.. to the next line
 
Upvote 0
Upvote 0
From that log entry, it seems to suggest that the httpjob is within an inactive activity, so it may not run as expected.

Try moving the httpjob code to a service that will stay running.
 
Upvote 0
From that log entry, it seems to suggest that the httpjob is within an inactive activity, so it may not run as expected.

Try moving the httpjob code to a service that will stay running.
I only use httpjob with b4xpages... and runs at foreground...
 
Upvote 0
see: default 30 sec.

1730473926965.png
 
Upvote 0
Well i know that... but sometimes not "really" working... keep trying to load and not returning.. to the next line
Do you want to wait for timeout and then do something? timeout will return false.
 
Last edited:
Upvote 0
Do you want to wait for timeout and then do something? timeout will return false.
No I want wait for example only 5 or 10 seconds - no more... but the problem is not that...

I think found it...

Well I am having a button that httpjob and then shows other b4xpage...

I will try to have "sleep(0)"..
before showing other b4xpage... may be that trigger the msg and the prob:
sending message to waiting queue of uninitialized activity (submitjob)

or I will have phone waked...
will check and inform..
 
Upvote 0
Back
Top