RadaeePDF.com :: Topic: Closing the PDFHttpStream (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Closing the PDFHttpStream

Closing the PDFHttpStream 2 years 6 months ago #8927

  • ryabis
  • ryabis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 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
The administrator has disabled public write access.

Closing the PDFHttpStream 2 years 6 months ago #8928

  • ryabis
  • ryabis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
I got it. I had to close the PDFReader object, and the Document first.
The administrator has disabled public write access.
Powered by Kunena Forum