A customdialog is allowed to have various views that are allowed to fire up events. It is also possible to start a service when the dialog is shown (so some background code can be run).
However, the HTTP client GetAsynchronously method will remain blocked (probably because it creates a new runnable).
As soon as the dialog is dismissed, the GetAsynchronously method will become unblocked and start processing code and download the file.
I had a dialog as a remote filepicker, and each directory listing is retrieved when a directory is clicked. So this does create the request, but does not allow it to be fetched.
I guess the alternative is to create an activity or a panel.
However, the HTTP client GetAsynchronously method will remain blocked (probably because it creates a new runnable).
As soon as the dialog is dismissed, the GetAsynchronously method will become unblocked and start processing code and download the file.
I had a dialog as a remote filepicker, and each directory listing is retrieved when a directory is clicked. So this does create the request, but does not allow it to be fetched.
I guess the alternative is to create an activity or a panel.