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


Exception when opening stream 6 years 7 months ago #6999

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
I want to open a PDF document. I use this code:
PDFFileStream stream = new PDFFileStream();;
res = doc.OpenStream(stream, "");
This code throws an exception NullPointerException with message "println needs a message". This exception is thrown in Document.OpenStream method on this line:
hand_val = openStream(stream, password);
My variable fullPath is existing path to the PDF document.
Can you give me an advice, please, what I'm doing wrong?


I found, that the code above works, but only if variable fullPath is a path to the internal storage of device. When fullPath is a path to the external memory card, the code above throws the exception.

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

Last edit: by sanyu erisa. Reason: Add more information
  • Page:
  • 1
Powered by Kunena Forum