SaveAs method always returns False. - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: SaveAs method always returns False.

SaveAs method always returns False. 2 years 2 months ago #11246

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Hi,

public boolean SaveAs(String path, boolean rem_sec) {
return saveAs(hand_val, path, rem_sec);
}
The above method of Document class always returns false. So i am unable to save the pdf to new location. I stuck here.

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

SaveAs method always returns False. 2 years 2 months ago #11247

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
Some check:
- are you activating a Premium license?
- are you using an absolute path?
- are you sure the destination path writable?

May you show the code you're using?

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

SaveAs method always returns False. 2 years 2 months ago #11248

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Yes activated Premium license.

yes using absolute path. And the same code is working fine in other build.
public boolean pdfSaveAs(String path) {
return m_doc.SaveAs(path, true);
}

And destination path is writable.

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

SaveAs method always returns False. 2 years 2 months ago #11249

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
Are you running it on a 6.0 environment/device?
Have you provided full writing grant using 6.x style permissions?

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

SaveAs method always returns False. 2 years 2 months ago #11250

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Yes and i have given permission write and read.

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

SaveAs method always returns False. 2 years 2 months ago #11251

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
Are you asking for permission within the code like developer.android.com/training/permissions/requesting.html .
And may you confirm: are you on Android 6.x+?

Sorry if I insist, I'm trying to retrive as much information as possible.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum