Overview
Artifact ID: | ef9da34a1f98294151a4a7302dc4798b5a707434 |
---|---|
Ticket: | fb0c8c443167a139c9da109e52bf292b477c84ab
SQLiteOpenHelper does not open the database in the database folder |
User & Date: | anonymous 2018-05-28 06:41:08 |
Changes
- foundin changed to: "sqlite-android-3230100.aar"
- icomment:
At https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/database/sqlite/SQLiteOpenHelper.java in the private SQLiteDatabase getDatabaseLocked(boolean writable) method, the path to the database is final File filePath = mContext.getDatabasePath(mName); In your version the path is mName when you try to open read/write and String path = this.mContext.getDatabasePath(this.mName).getPath(); if the first try does not work. The effect is if the working code with Android sqlite classes is modified to use your version of sqlite classes, the code will not work because the database cannot be opened.
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- private_contact changed to: "7eb5ebe6303954fb544c0b7429371f91c05b9426"
- severity changed to: "Important"
- status changed to: "Open"
- title changed to:
SQLiteOpenHelper does not open the database in the database folder
- type changed to: "Code_Defect"