Unable to establish connection with existing encrypted SQLCipher Db


#1

I am trying to establish connection with existing encrypted SQLCipher DB but stuck with “error code 14: Could not open database”, even failed to created connection with new using “SQLiteDatabase.openOrCreateDatabase(“demo.db”, Test123”, null);"
I think problem exist due to incorrect DB path
Can Anyone please share demo code to connect already encrypted database

Thanks


#2

Hi @lakhan_mahajan

You may wish to review the SQLCipher for Android test suite.