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

Closing the PDFHttpStream

More
10 years 10 months ago #8927 by ryabis
Hello,

So I'm trying to make sure all streams are closed properly. When I call stream.close(), it just blocks all day long. I see in the demo app, it is called in the Activity's onDestroy() method. This will not work for the apps I am working on, as they only contain one Activity (instead, views are swapped in/out).

I put the close() call in a thread, and it never completes. It just keeps blocking. Any ideas?

Thanks,
Ryan
More
10 years 10 months ago #8928 by ryabis
Replied by ryabis on topic Closing the PDFHttpStream
I got it. I had to close the PDFReader object, and the Document first.
Time to create page: 0.379 seconds
Powered by Kunena Forum