I would like to use OrmLite with SQLCipher in my Android project, but both libraries have their own abstract SQLiteOpenHelper
class to implement. Java don\'t a
Applying the patch supplied by ge0rg I to found that queryForAll()
throws a NoSuchMethod exception
. After some investigation I discovered this is a result of rawQuery returning a net.sqlcipher.Cursor
and the cursor returned by getQuery (in AndroidCompiledStatement) being an android.database.Cursor
. I simply modified AndoridCompiledStatement's imports to:
import net.sqlcipher.Cursor;
And modified getCursor() to return a android.database.Cursor:
public android.database.Cursor getCursor() { ...
With these changes it appears to work for me. Though I'll need to play about a bit more to be completely sure.