I have database placed in raw folder and i need to load the database path when the apk is installed? Where it is? in /data/data/package_name/FILE ? I dont see it?
I work with extisting sqlite database.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It has no path: It is a resource, so you need to reference is as such using
getResources().You should, at the first run, copy it to the
/data/data/YOUR_APP_FOLDER/databases/YOUR_DB.dbYou can follow this tutorial: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/