You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jason Ginchereau (JIRA)" <ji...@apache.org> on 2016/02/27 00:34:18 UTC

[jira] [Resolved] (CB-10664) Android cordova.file.externalDataDirectory does not write to sdcard

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

Jason Ginchereau resolved CB-10664.
-----------------------------------
    Resolution: Not A Bug

"External" refers to Android application external storage, which is not necessarily on an SD card, even on a device that has an SD card installed. It depends on how the Android device manufacturer has configured storage on the device. Many devices have application "external" storage configured to point to the built-in storage. See some discussion of that here: http://stackoverflow.com/questions/12087510/check-if-the-sdcard-is-present-boolean-is-always-true

The Cordova file plugin doesn't currently expose the Android SD card storage otherwise, but that would be a feature request, not a bug.

> Android cordova.file.externalDataDirectory does not write to sdcard
> -------------------------------------------------------------------
>
>                 Key: CB-10664
>                 URL: https://issues.apache.org/jira/browse/CB-10664
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>         Environment: Android (tested on 5.1.x / 6.0.x)
>            Reporter: Fabrizio Bottino
>              Labels: android, triaged
>
> Using a device with "large" internal memory you can't write explicitly to sdcard: every write is emulated to internal memory, even using cordova.file.externalDataDirectory.
> Example: I have two identical tablets, one with sdcard and one without.
> When I write to cordova.file.externalDataDirectory they both write to file:///storage/emulated/0/Android/data/<app-id>/files/ when I expect one of them to write to sdcard.



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