[TIMOB-11975] Android: API to expose res/raw directory
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-12T22:51:22.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2012 Sprint 25, 2012 Sprint 25 API |
Components | Android |
Labels | api, qe-testadded |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2012-12-06T01:51:27.000+0000 |
Updated | 2014-06-19T12:44:37.000+0000 |
Description
We want to expose the res/raw directory so that user can store read-only audio/video files- These files will be public so user can use them as ringtones (or for notification sounds)
Test code:
Ti.API.info("Res/raw path: " + Ti.Filesystem.getResRawDirectory());
1. Run this code
2. Make sure there are no errors, and the string printed should start with 'android.resource://'
PR: https://github.com/appcelerator/titanium_mobile/pull/3546
Successfully print the resource directory starting with 'android.resource://' Verified on: SDK version: 3.1.0.v20130126182604,3.0.2.v20130126230207 CLI version : 3.0.23 OS : MAC OSX 10.7.5 XCode : 4.5.1 Android version : 2.3.6