[TIMOB-2915] Android: /sdcard is hardcoded for appdata:// paths
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | Android |
Labels | android, appdata, defect, release-1.6.0, reported-1.6.0, sdcard |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:32:49.000+0000 |
Updated | 2011-04-17T02:00:26.000+0000 |
Description
We need to query the system for it's external storage dir rather than hard-coding "/sdcard". Some devices are using storage in a different mount location.
(from [0db802484cf4abc6b3a473c228e8f527667c8597]) setData() and setType() are mutually exclusive in the Intent API, we need to call setDataAndType() when both are supplied in the
Intent proxy. Use the system's external storage API instead of
hardcoding "/sdcard" [#2914 state:fixed-in-qa] [#2915 state:fixed-in-qa]
https://github.com/appcelerator/titanium_mobile/commit/0db802484cf4abc6b3a473c228e8f527667c8597"> https://github.com/appcelerator/titanium_mobile/commit/0db802484cf4...
Marshall. Do you have a test for this and/or devices you know have it in a different location?
as per the good Mr Culpepper: "you can just run the YQL test on the Nexus S. if it crashes then you should see a message about /sdcard not being found. if not -- it should be verified (the Nexus S has it's external dir mounted at /mnt/sdcard)"
no crashes, test runs as expected. nexus s 2.3 and [INFO] Titanium SDK version: 1.6.0 (02/03/11 09:22 a02f7db)