cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Ginchereau (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-7273) Using cordova.file.applicationDirectory, Android, and reading the file
Date Wed, 04 Nov 2015 19:41:27 GMT

     [ https://issues.apache.org/jira/browse/CB-7273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Ginchereau closed CB-7273.
--------------------------------

> Using cordova.file.applicationDirectory, Android, and reading the file
> ----------------------------------------------------------------------
>
>                 Key: CB-7273
>                 URL: https://issues.apache.org/jira/browse/CB-7273
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>         Environment: Android
>            Reporter: Raymond Camden
>            Assignee: Jason Ginchereau
>            Priority: Minor
>
> I wrote a simple app that uses the file system API to read a file from the www folder.
The demo code may be found here:
> https://github.com/cfjedimaster/Cordova-Examples/blob/master/readtextfile/
> It uses this line essentially to handle the read:
> window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + "www/index.html",
gotFile, fail);
> This works fine in iOS, but fails to work in Android.  While you can work around this
by just using a regular XHR get, the code really should work.



--
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