Of course I can right click the raw folder and add new folder but when I export the project, the APK file does not contain the new sub folder.
Asked
Active
Viewed 1.1k times
22
-
1Check out: [Can the Android Layout folder contain subfolders?](http://stackoverflow.com/questions/4930398/can-the-android-layout-folder-contain-subfolders) it discusses the `/raw` folder too. – Sam Mar 19 '13 at 18:59
1 Answers
48
You can't.
The folders in /res/
have a predefined structure, and you can't add subfolders.
However, seeing as this is the raw
folder, you may want to look into using the assets
folder, in which sub folders are supported.
Keep in mind thought that by using assets
you won't be able to use R.*.*
references anymore. You will have to go through the AssetManager.

Raghav Sood
- 81,899
- 22
- 187
- 195