Share Share
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Closing the PDFHttpStream 10 years 10 months ago #8927

  • ryabis
  • ryabis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 10 months ago #8928

  • ryabis
  • ryabis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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