Ryan Mark O'Connor created CB-10425:
---------------------------------------
Summary: Android External Storage directories not writable even
with permissions
Key: CB-10425
URL: https://issues.apache.org/jira/browse/CB-10425
Project: Apache Cordova
Issue Type: Bug
Components: CordovaLib
Environment: Phonegap using plugin cordova-plugin-dialogs
Reporter: Ryan Mark O'Connor
Using latest phonegap and cordova-plugin-dialogs, checked the following line is
present in android xml:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Trying to execute the following code:
var dstDir =
cordova.file.externalApplicationStorageDirectory.replace("file://", "");
directory.copyTo(root, dstDir, function() { alert('Export successful. Your
exported photos can be found in ' + dstDir); }, errorHandler);
The error handler is called with error code 6:
FileError.NO_MODIFICATION_ALLOWED_ERR
This also occurs if trying to use the external storage root as the destination
directory. How can I get it to work? The value of dstDir on a real android
tablet is:
/storage/emulated/0/Android/data/org.winston.photoarchiver/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]