I am using the SQLCipher Library for Android to Encrypt/Decrypt the DB file. I am following the exact steps that were discussed in the API to add the library.
But I
java.lang.UnsatisfiedLinkError
happens when the SQLCipher library was not initialized before using.
To solve the problem, call SQLiteDatabase.loadLibs(this);
before using.
For example:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SQLiteDatabase.loadLibs(this);
// Set up the window layout
setContentView(R.layout.main);
//instance of database adapter
db = DBAdapter.getInstance(this);
//load database
db.load("password goes here");