Unable to create Database for content providers
<p>My application has a database that has to be exposed to global search. I have the sqlite database as a raw file. I am trying to copy the database file to the databases directory in my project but it throws a FileNotFoundException. I am guessing that this is a permissions issue.</p>

<p>My application is similar to the Searchable dictionary but the problem is that since I have around 2000 records, it is taking around 15-30 seconds to populate the database. I also have to way to tell the user that the data is loading. So I just decided to use the sqlite database which I can copy to the databases directory of my project in the onCreate method of my databasehelper class.[extends SqliteOpenHelper].</p>

<p>Now I use the same method to copy my actual application database and it works fine. This may be because they are running in the same process.</p>

<p>How can I copy my database to the databases dir or where to I need to copy it to?</p>

<p>Thank you.</p>
