To run: clone this repo and open with a recent version of Android Studio, or build from the command line.
It is possible to run on an emulator or device, as documented in the SQLCipher for Android compatibility section.
More information can be found in SQLCipher for Android.
- Open this repository within Android Studio
- Add a new class within
net.zetetic.testspackage that extendsSQLCipherTest:
package net.zetetic.tests;
import net.sqlcipher.database.SQLiteDatabase;
public class DemoTest extends SQLCipherTest {
@Override
public boolean execute(SQLiteDatabase database) {
try {
// Add your scenario here
return true;
}catch (Exception e){
return false;
}
}
@Override
public String getName() {
return "Demo Test";
}
}
- Add
DemoTestto theTestSuiteRunner:
tests.add(new DemoTest());
- Build and run the application on an Android device/emulator