I'm developing an application and I've run into two problems here:
How can I open an SQLite database which is stored in the assets folder? What path do I use to access the assets folder in my application? Here's what I have so far:
path = "file:///asset_folder/database.dat"; SQLiteDatabase db = null; db = SQLiteDatabase.openDatabase(path, null, SQLiteDatabase.OPEN_READONLY);
How can I copy a file to the internal memory (
/data/data/...
) during the installation of my application or during the first run? I want to copy a folder inside the assets folder into the internal memory during the first run.
Any suggestions would be greatly appreciated.