Android: Read an external file (not created by app)
<p>We are creating an Android app (game) using Unity.</p>

<p>in order to deal with Android we wrote an Android Library Module.</p>

<p>we want to insert a text file to the Android file system manually, and than access it through the app, where should we put the file and how can we access it?</p>

<p>we tried</p>

<pre><code>File file = new File(context.getExternalFileDir(null), "fileToRead.txt");
System.out.println(file.toString());
</code></pre>

<p>while the file "fileToRead.txt" is in sd_card/Android/data/com.ourapp.ourapp/</p>

<p>with no success.
(file.exists() returns false).</p>

<p>edit:
we added these to the manifest</p>

<pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
</code></pre>

<p>i also</p>