Accessing folder in android
<p>I am working on an android app in which I need to detect the language of user's input text.
So using Stackoverflow I found a recommendation of using a java library called langdetect which requires reading languages profiles.</p>

<p>I was able to create a simple plane java project, by adding a directory (folder) inside the java project called "profiles" which contains all the languages profiles.</p>

<p>I couldn't make this work in android since the only 2 ways I know of accessing files in android either by adding the desired files inside "assets" or "rec/raw" but I keep getting error saying file not found.</p>

<p>The method from langdetect jar file that requires reading profiles is the following</p>

<pre><code>String path = "profiles";

DetectorFactory.loadProfile(path);
</code></pre>

<p>the above code works in plain java.</p>

<p>Any help guys.</p>

<p>I used the following
Uri.parse("android.resource://com.my.package.my.app/raw");
file:///android_asset
classLoader.getResource("profiles");</p>

<p>and many others in the same style.</p>

<p>The problem is that I don't need to access specific file per say, the only thing I need is a path to the folder that contains the languages profiles, the folder contains 53 files for 53 languages. </p>
