Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11975] Android: API to expose res/raw directory

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-12-12T22:51:22.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2012 Sprint 25, 2012 Sprint 25 API
ComponentsAndroid
Labelsapi, qe-testadded
ReporterHieu Pham
AssigneeHieu Pham
Created2012-12-06T01:51:27.000+0000
Updated2014-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://'

Comments

  1. Ping Wang 2012-12-12

    PR: https://github.com/appcelerator/titanium_mobile/pull/3546
  2. Paras Mishra 2013-01-28

    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

JSON Source