Using android Cursor instead of sqlcipher cursor


#1

Hi,

Is it expected that we use Android’s Cursor (android.database.cursor) instead of SQLCipher’s (net.sqlcipher.Cursor) when using Content Providers methods? For example:

Cursor last_foreground = getContentResolver().query(.... 

Leads to a compilation error due to the different classes:
Error:(157, 64) error: incompatible types: android.database.Cursor cannot be converted to net.sqlcipher.Cursor

Thanks


#2

Hi @Julio

Yes, you will want to use the android.database.Cursor type instead in that use case.