[
https://issues.apache.org/jira/browse/CB-5916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897235#comment-13897235
]
ASF subversion and git services commented on CB-5916:
-----------------------------------------------------
Commit d8c5e5dc8063658c863d4f5f13e18fdcf6383804 in branch refs/heads/master
from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=d8c5e5d ]
CB-5915: CB-5916: Reorganize preference code to make defaults possible
> Change Android filesystem root location
> ---------------------------------------
>
> Key: CB-5916
> URL: https://issues.apache.org/jira/browse/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* mounted)
> See CB-285 for much more discussion, and
> http://developer.android.com/guide/topics/data/data-storage.html 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)
> {code}
> <preference name="AndroidPersistentFileLocation" value="Compatibility" />
> (Old location logic)
> <preference name="AndroidPersistentFileLocation" value="Internal" /> (New
> location)
> {code}
> "{{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
(v6.1.5#6160)