I want to do this because my current solution is I use httpjob request inside an activity to check connection to a server but if I switch to other activity after some time it will return unexpectedly to the activity where I called httpjob. I know that B4Xpages will prevent this but it takes time to convert all the codes to b4xpages
Making the http request is simple. Just call a sub that makes the request. I guess that you are having trouble with getting the result, right? This is indeed difficult with non-B4XPages projects. You can use CallSubDelayed to call a sub in the activity, however you should first check whether it is visible with IsPaused(Activity17). Otherwise it will start the activity.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.