Whatever it is you are doing, you'll have to wait until the app enters the event dispatcher.
I can't comment on when because I don't have any information about how your code is structured.
You can probably start the program, start a background thread for the HTTP traffic, then call requestBackground(). This would insure that you have an app instance but are not visible to the user.
|