I have created an sqlite databse and put it into the assets folder. How can I access it? I have created a database helper class also, but my data is "not taking the path".
Plz help me
Thanks
I have created an sqlite databse and put it into the assets folder. How can I access it? I have created a database helper class also, but my data is "not taking the path".
Plz help me
Thanks
Copy your database file from /asset
to internal databases directory /data/data/<package_name>/databases/
, then use that database file.
Look at this SO question How to ship an Android application with a database?.
Also this tutorial Using your own SQLite database in Android applications