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

Error creating document -10

More
IP: 192.168.0.71 11 years 5 months ago #7411 by AntonGerasimenko
Help create a new document.
When i use this construction:

final String path= "/storage/emulated/0/Download/noname.pdf";
Document doc = new Document();
doc.Create(path);

Metod doc.Create(path) return -10.

Help create a new document correctly. Thanks
More
IP: 192.168.0.158 11 years 5 months ago #7413 by nermeen
Replied by nermeen on topic Error creating document -10
-10 -> access denied or invalid file path

make sure the path is a valid one...

Check PDFTestAct.onCreate for a working example.
More
IP: 192.168.0.71 11 years 5 months ago #7417 by AntonGerasimenko
You example PDFTestAct.onCreate is worked, but if i use this activity in my project, i make -10 rezult.
My path and example path is the same. "/sdcard/test.pdf";


AndroidManifest use WRITE_EXTERNAL_STORAGE permission .

I use activeProfessional license.Release: 2.9.11


what else could be the cause of a failed attempt to create a file?
More
IP: 192.168.0.158 11 years 5 months ago #7431 by nermeen
Replied by nermeen on topic Error creating document -10
The document creation needs a premium license.

It's working in the demo project, because it's activated with a premium license.
Time to create page: 0.462 seconds
Powered by Kunena Forum