[
https://issues.apache.org/jira/browse/CB-6428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363903#comment-14363903
]
rafa commented on CB-6428:
--------------------------
This fix work great but exist a new error
Packages org.apache.cordova.file 1.3.4-dev and org.apache.cordova.file-transfer
0.5.0
Test the code:
var ft = new FileTransfer();
ft.download(
"https://www.google.com.br/images/srpr/logo11w.png",
cordova.file.applicationStorageDirectory+"logo11w.png",
function(e) {
alert("Success" +JSON.stringify(e));
},
function(er) {
alert("ERROR "+JSON.stringify(er));
});
-----------
return error: Attempt to read from field 'java.lang.String
org.apache.cordova.file.LocalFileSystemURL.path" on a null object reference
> Unable to read android_asset directory through File API
> -------------------------------------------------------
>
> Key: CB-6428
> URL: https://issues.apache.org/jira/browse/CB-6428
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Affects Versions: 3.3.0
> Environment: Android 4.4.2 / Samsung Galaxy S4
> Reporter: Matt Grande
> Assignee: Andrew Grieve
> Labels: android, file
>
> Attempting to read the 'android_asset' folder through the File API results in
> Error Code 5 (FileError.ENCODING_ERR). I've tried accessing via
> resolveLocalFileSystemURL, and by creating a directory reader and calling
> readEntries().
>
> window.resolveLocalFileSystemURL('file:///android_asset/www/my_asset_folder',
> success, fail);
> var sourceDir = new DirectoryEntry( { fullPath:
> 'file:///android_asset/www/my_asset_folder' } );
> var reader = sourceDir.createReader();
> reader.readEntries(success, fail);
> (I have also tried with the URLs being '/android_asset/www/my_asset_folder';
> same result)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]