Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

PDFViewAct using PDFHttpStream slow startup

More
10 years 8 months ago #9160 by zenilja
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.
More
10 years 8 months ago #9173 by Davide
Hi,
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.
Time to create page: 0.379 seconds
Powered by Kunena Forum