cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-3404) Android: requestFileSystem with type LocalFileSystem.PERSISTENT:doesn't return a path under /Android/data/ when a sd-card is mounted
Date Tue, 21 May 2013 21:32:21 GMT

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

Joe Bowser resolved CB-3404.
----------------------------

    Resolution: Won't Fix

This is a case where we give JS developers enough rope to hang themselves.

We use Environment.getExternalStorageDirectory(), the files path is an exercise left to the
developer of the application.  Just because the docs say we should do something doesn't mean
that we'll enforce it on our end, just like how Android doesn't enforce this.

If you want this add /Android/Data to the path.
                
> Android: requestFileSystem with type LocalFileSystem.PERSISTENT:doesn't return a path
under /Android/data/ when a sd-card is mounted
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-3404
>                 URL: https://issues.apache.org/jira/browse/CB-3404
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.7.0
>            Reporter: Stephan Wezel
>            Assignee: Joe Bowser
>            Priority: Minor
>
> the method requestFileSystem in framework/src/org/apache/cordova/FileUtils.java
> doesn't return a path under Environment.getExternalStorageDirectory()/Android/data/<package-name>
when a "sd-card" is mounted and as type PERSISTENT is used.
> in all other paths in this method the returned path contains Android/data.
> From the Android SDK doc(http://developer.android.com/guide/topics/data/data-storage.html#filesExternal)
an app schould write into Android/data/<package-name>/files when writing to the external
storage.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message