title: Copying Database from assets folder to database folder
body: <p>Hi
  I'm working with this code
  <a href="http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/" rel="nofollow">http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/</a>
  and it's working fine, except that I'm getting a java.io.filenotfoundexception on this line</p>
  
  <pre><code>OutputStream myOutput = new FileOutputStream(outFileName);
  </code></pre>
  
  <p>I also tried this instead</p>
  
  <pre><code>OutputStream myOutput = this.context.openFileOutput(outFileName, Context.MODE_PRIVATE);
  </code></pre>
  
  <p>and I got</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException:
    File
    /data/data/com.kosherapp/databases/applicationdata
    contains a path separator</p>
  </blockquote>
  
  <p>Anyone have any ideas for me?
  Thanks in advance!</p>