[TIMOB-16295] Ti.Filesystem.isExternalStoragePresent() always returns true on Android devices
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-07-14T13:47:10.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | Release 3.4.0 |
Components | TiAPI |
Labels | ipass1 |
Reporter | James Semple |
Assignee | Sunila |
Created | 2014-01-23T10:33:05.000+0000 |
Updated | 2017-03-28T20:21:41.000+0000 |
Description
Any app released on Android which queries isExternalStoragePresent using the Ti.Filesystem method will return true whether external storage is present or not. This includes devices that have no facility for external storage (such as Nexus 7).
Bump - have also validated this on Ti SDK 3.1.3
Is this going to be fixed soon? Any workarounds?
Seeing this with 3.2.2.GA as well - this needs to get fixed as it is causing errors across simulators and devices that don't have external storage
In Android, external storage doesn't mean that it is removable media like SD card. As per the documentation "This directory can better be thought as media/shared storage. It is a filesystem that can hold a relatively large amount of data and that is shared across all applications (does not enforce permissions)". I think the behavior of this property is correct. If required, we should expose another property to check if the external storage is removable or not.
Closing as invalid. Reopen if you continue to have issues.