How can I add a sub folder to the raw folder in my Android app?

android, android-resources

Solution

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.

Problem

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.

Original source

Related problems