۱۳۹۴/۰۷/۱۰, ۱۲:۳۴ ب.ظ
با سلام.برای قفل گذاری دیتابیس اندروید از طریق SQL Cipher به نقل از لینک زیر:
http://stackoverflow.com/questions/17671...or-android
تا مرحله 4 موفق شدم وتمام لایبرری های آن را اضافه کردم ولی مرحله 5 (آخرش) را متوجه نشدم.چی میگه:
http://stackoverflow.com/questions/17671...or-android
تا مرحله 4 موفق شدم وتمام لایبرری های آن را اضافه کردم ولی مرحله 5 (آخرش) را متوجه نشدم.چی میگه:
- These must first be added to your project (within the libs folder.) Refer here to get these:http://sqlcipher.net/sqlcipher-for-android/
- Secondly you need to add the icudt4dl.zip file to your assets folder, this Zip comes with the SQL Cipher libraries.
- Right click your project, go to properties then Java build path then include libraries such as commons-codec.jar, guava-r09.jar, sqlcipher.jar. Once this is done, do a build clean.
- Then within your App, instead of importing android.database.sqlite, you will import import net.sqlcipher.database
- Change any code which interacts with the DB, example:SQLiteDatabase.loadLibs(context);String dbPath = this.getDatabasePath("dbname.db").getPath();SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbPath,"dbPassword", null);