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

TOPIC:

Error creating document -10 9 years 6 months ago #7411

  • AntonGerasimenko
  • AntonGerasimenko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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

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

Error creating document -10 9 years 6 months ago #7413

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
-10 -> access denied or invalid file path

make sure the path is a valid one...

Check PDFTestAct.onCreate for a working example.

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

Error creating document -10 9 years 6 months ago #7417

  • AntonGerasimenko
  • AntonGerasimenko's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
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?

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

Error creating document -10 9 years 6 months ago #7431

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
The document creation needs a premium license.

It's working in the demo project, because it's activated with a premium license.

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

  • Page:
  • 1
Powered by Kunena Forum