I’m using Database Helper and I got an error saying
SQLiteException near “/” syntax error;
My DB_PATH is
/data/data/com.mypackage/databases/
My DB_NAME isloading`. I can’t see what is causing the error.
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.
Ok you should do something like this :
then use the path like this:
But remember to make sure you add “.db” at the end of your database name, and the actual database has .db, it is an obvious practice but sometimes is the main issue 🙂
Good Luck