When I start the PDFViewAct and use a PDFHttpStream to open a remote PDF, it can take a few seconds until
the library decides it has enough information.
This is very bad UX. It would be better to do all this in the background, and immediately show a blank screen (where I then would place a loading
indicator).
How can I modify the code to do this? I see in the log that there's some downloading going on, and basic setup, all inside onCreate().
OnCreate() is a very bad place to do this! It should return very quickly, to free up the android UI thread.