[TIMOB-2914] Android: Intent data and type aren't correctly set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
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, defect, intent, release-1.6.0, reported-1.6.0 |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:32:47.000+0000 |
Updated | 2011-04-17T02:00:26.000+0000 |
Description
We're using set setData and setType for the data/type coming from the proxy, but each of they overwrite each other. If you have both data and type you're supposed to call setDataAndType.
(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...
Tested by using a PDF View intent:
verified droid2 2.2