Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2915] Android: /sdcard is hardcoded for appdata:// paths

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsAndroid
Labelsandroid, appdata, defect, release-1.6.0, reported-1.6.0, sdcard
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T03:32:49.000+0000
Updated2011-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.

Comments

  1. Marshall Culpepper 2011-04-15

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

  2. Don Thorp 2011-04-15

    Marshall. Do you have a test for this and/or devices you know have it in a different location?

  3. Thomas Huelbert 2011-04-15

    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)

JSON Source