cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Clelland (JIRA)" <>
Subject [jira] [Created] (CB-5916) Change Android filesystem root location
Date Tue, 28 Jan 2014 14:45:37 GMT
Ian Clelland created CB-5916:

             Summary: Change Android filesystem root location
                 Key: CB-5916
             Project: Apache Cordova
          Issue Type: Sub-task
          Components: Android, Plugin File
            Reporter: Ian Clelland
            Assignee: Ian Clelland

Android Persistent files are (also) stored in an inconvenient place by default: Either the
application data directory (not accounting for a possible multi-user environment), or the
root of the SD Card, if it is mounted (And on Nexus devices, the emulated SD Card is *always*

See CB-285 for much more discussion, and
for a good explanation of the properties of various storage locations.

There should be a single preference in config.xml for Android persistent files. It can take
one of two values (currently; additional values may be added later if we have better ideas)

<preference name="AndroidPersistentFileLocation" value="Compatibility" /> (Old location

<preference name="AndroidPersistentFileLocation" value="Internal" /> (New location)

"{{Internal}}" will put persistent files under the user's application internal storage directory
{{Activity.getFilesDir() + "/files"}} -- the extra {{/files}} means that other filesystem
plugins can register roots at different places under {{getFilesDir()}} which will not be visible
to one another.

This message was sent by Atlassian JIRA

View raw message