Reputation: 223
I am trying to build an app that uses an already created db ... I already found a tutorial on
how to copy it to the corect location so it can be used by a ContentProvider.But the problem
is that I also need to protect that data ...I already found SQLCipher which is supposed to
protected the db ... but none of the samples I found mentions on how to copy your own. I
keep gettin an error the ContentProvider was not found .. .
Upvotes: 0
Views: 202
Reputation: 223
Ok I found the solution I managed to build my database using either an sqlCipher tool or either exporting the db as SQLite commands and then creating the new Ciphered database using the SQLCipher libs...and getReadableDatabse and getWritableDatabase did not work for me I had to use openDatabase and pass RWR FLAG it is strange that SQLCipher implements them because I couldn't get them to work ... do not know if I have been clear enough ... if anyone else has this problem he can let me know.
Upvotes: 1