Writing files from within a library
<p>I took my working app and converted it to a library so I can have multiple versions by using that library.</p>

<p>However, I've run into some problems. For example, I have a file that used to be copied from my assets folder into the data folder. </p>

<pre><code>OutputStream output = new FileOutputStream(outFileName);
</code></pre>

<p>When I try and run this code I get a </p>

<p>java.io.FileNotFoundException: ... (Permission denied)</p>

<p>error. I think this is because this is being called from code within my library and it is trying to write to the namespace of the app implementing the library.</p>

<p>What is the correct way to have code in the library write to the data folder?</p>
