cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10425) Android External Storage directories not writable even with permissions
Date Mon, 25 Jan 2016 18:47:39 GMT

    [ https://issues.apache.org/jira/browse/CB-10425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115741#comment-15115741
] 

Nikhil Khandelwal commented on CB-10425:
----------------------------------------

What version of Android OS are you running  on?

> 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: Plugin File
>         Environment: Phonegap using plugin cordova-plugin-dialogs
>            Reporter: Ryan Mark O'Connor
>              Labels: triaged
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message