Get the SQLite path within the Assets Folder
问题 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