I have an android application in wich I can export/inport my database to sdcard.
I do it simply by using:
FileChannel src = new FileInputStream(currentDB).getChannel();
FileChannel dst = new FileOutputStream(backupDB).getChannel();
dst.transferFrom(src, 0, src.size());
src.close();
dst.close();
What I would like to do is to password protect my exported database so if anyone tries to open it using sqlite browsing programms they would need to enter a password.
Can this be done(and how)?