Closing the PDFHttpStream - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Closing the PDFHttpStream

Closing the PDFHttpStream 2 years 11 months ago #8927

  • ryabis
  • ryabis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Closing the PDFHttpStream 2 years 11 months ago #8928

  • ryabis
  • ryabis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I got it. I had to close the PDFReader object, and the Document first.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum