SQLite Android Bindings
Ticket Change Details
Not logged in
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

  1. foundin changed to: "sqlite-android-3230100.aar"
  2. 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.
    
  3. login: "anonymous"
  4. mimetype: "text/x-fossil-plain"
  5. private_contact changed to: "7eb5ebe6303954fb544c0b7429371f91c05b9426"
  6. severity changed to: "Important"
  7. status changed to: "Open"
  8. title changed to:
    SQLiteOpenHelper does not open the database in the database folder
    
  9. type changed to: "Code_Defect"