You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2014/01/14 23:55:19 UTC
[jira] [Resolved] (CB-320) Persistent storage points to SD Card on
Android 4.0 (Galaxy Nexus)
[ https://issues.apache.org/jira/browse/CB-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-320.
---------------------------
Resolution: Won't Fix
SD Card persists even when you factory reset the device, so this isn't necessarily incorrect.
> Persistent storage points to SD Card on Android 4.0 (Galaxy Nexus)
> ------------------------------------------------------------------
>
> Key: CB-320
> URL: https://issues.apache.org/jira/browse/CB-320
> Project: Apache Cordova
> Issue Type: Bug
> Components: Docs
> Affects Versions: 1.5.0
> Reporter: Matthew Windwer
> Assignee: Joe Bowser
> Priority: Minor
> Fix For: Master
>
>
> According to the release notes for 5.0, this should not be an issue:
> "Prefix URIs for file API with file:/// and persistent storage should never point to SD card"
> However, using the following method, my file is still being stored to the SD card:
> window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) {
> fileSystem.root.getFile("account.txt", { create: true , exclusive: false }, function(fileEntry) {
> fileEntry.file(function(file) {
> console.log(file); // {"fullPath": "/mnt/sdcard/account.txt", "lastModifiedDate": 1331530073000, "name": "account.txt", "size": 64, "type": "text/plain"}
> });
> });
> });
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)