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
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.
you can move the init bloc of code from the onCreate() method and put it where you prefer.
You can also edit or extend the PDFHttpStream class as you want.
The RDPDFReader is a project that shows the library features, not an optimized project.