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.