Android: resources file
<p>I have spent ages trying to find out how to get the directory of the resources file (<code>res/raw</code>) for months now... I just can't find out how to do it...</p>

<p>I'm attempting to get the directory of <code>res/raw</code> so that I can use <code>listFiles()</code> to make an array containing all the files in the raw folder so that I may get the file names and sort which files I will use or not through there names (as I can then access them through <code>R.raw.concat(fileIwantToAccess)</code>) but I need to be able to read all the files in the folder so that I can decide which I use</p>

<p>Is there an easier way to tell Android, that I would like the contents of this folder?</p>

<p>btw, Ive tried using </p>

<pre><code>String directoryName = Soundboard.this.getFilesDir().getParent();
</code></pre>

<p>but it returns the path: <code>/data/data/com.soundboard</code>
which has the two sub directories: "lib" and "files", if I then concat both directories to directoryName before I make the File it returns nothing when I use <code>listFiles();</code> but not null, it returns <code>[]</code></p>

<p>Please help... I am hopelessly lost</p>
