- Posts: 20
- Thank you received: 0
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
SaveAs method always returns False.
9 years 11 months ago #11252
by sbettal
Replied by sbettal on topic SaveAs method always returns False.
I had given Read and write permissions for first app installs so it will not be the problem. And app supports android versions 11 1o current version.
9 years 11 months ago - 9 years 11 months ago #11253
by support
Replied by support on topic SaveAs method always returns False.
Are permissions within the manifest or on demand?
Is the application running on Android prior to 6.x?
May you provide one of your PDF file?
Is the application running on Android prior to 6.x?
May you provide one of your PDF file?
Last edit: 9 years 11 months ago by support.
9 years 11 months ago #11263
by sbettal
Replied by sbettal on topic SaveAs method always returns False.
Permissions are in manifest, and handled for marshmallow version also.
App is targeted to Android version 4.4+
Here is the code :-
try {
FileManager.deleteFileWithPath(signatureImagePath);
} catch (Exception e) {
logger.error("Unable to delete signature image");
}
String docPath = getDocumentFilePath(annotatedfileId + DeliverItMacros.EXT_DOC_TYPE_PDF,
DeliverItMacros.RELATIVE_CAPTUREDDOCS_FOLDERPATH);
boolean pdfSaved = pdfReaderView.pdfSaveAs(docPath);
App is targeted to Android version 4.4+
Here is the code :-
try {
FileManager.deleteFileWithPath(signatureImagePath);
} catch (Exception e) {
logger.error("Unable to delete signature image");
}
String docPath = getDocumentFilePath(annotatedfileId + DeliverItMacros.EXT_DOC_TYPE_PDF,
DeliverItMacros.RELATIVE_CAPTUREDDOCS_FOLDERPATH);
boolean pdfSaved = pdfReaderView.pdfSaveAs(docPath);
9 years 11 months ago #11264
by Davide
Replied by Davide on topic SaveAs method always returns False.
Hi,
first of all make sure that your new docPath exists..
If it doesn't exists create it and then save the pdf.
If you are trying to save it in your external card with devices that run Android 6.0+ you must implement something like that : developer.android.com/training/permissions/requesting.html
If the above tips don't work...can you reproduce the issue with the demo version of the library? If yes please send us your pdf so we can check it..
first of all make sure that your new docPath exists..
If it doesn't exists create it and then save the pdf.
If you are trying to save it in your external card with devices that run Android 6.0+ you must implement something like that : developer.android.com/training/permissions/requesting.html
If the above tips don't work...can you reproduce the issue with the demo version of the library? If yes please send us your pdf so we can check it..
Time to create page: 0.366 seconds