For Android, you just need to call openOrCreateDatabase to provide the encryption key. The second parameter is the passphrase to be used.
SQLiteDatabase database = SQLiteDatabase.openOrCreateDatabase(databaseFile, "test123", null);
The PRAGMA key interface provides the same function when using the SQLCipher command line.
source share