Skip to content

loaders (v4) and content provider with sqlcipher #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
slim-benhammouda opened this issue Apr 22, 2014 · 1 comment
Closed

loaders (v4) and content provider with sqlcipher #126

slim-benhammouda opened this issue Apr 22, 2014 · 1 comment

Comments

@slim-benhammouda
Copy link

Hi,
I know that sqlcipher supports android content provider but when I tried to use loaders (using support library), the app craches!!

Does Sqlcipher support loaders?

Thanks for your help.
Best regards

@slim-benhammouda
Copy link
Author

Hi,
It's me again, I found how sqlcipher works with loaders and content provider.
It was my mistake:

  1. I forget to call "SQLiteDatabase.loadLibs(Context)", I called it in onCreate method of my content provider.
  2. I imported net.sqlcipher.Cursor instead of android.database.Cursor. I changed this import by importing android.database.Cursor and everything works perfectly.

Hope what I did is the right way to fix this.
Thanks for your time.
Best regards
Slim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant