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

Exception when opening stream

More
IP: 192.168.0.71 11 years 8 months ago - 11 years 8 months ago #6999 by petr.sklenicka
Hello,
I want to open a PDF document. I use this code:
Code:
PDFFileStream stream = new PDFFileStream(); stream.open(fullPath); 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:
Code:
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?

EDIT

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.
Last edit: 11 years 8 months ago by sanyu erisa. Reason: Add more information
Time to create page: 0.462 seconds
Powered by Kunena Forum