Android Question Error creating crypted DB with SQLCipher

abcroverix

Member
Licensed User
Longtime User
Hello evreybody,
I'm trying to create a new DB with SQLCipher v1.20 and SQL v1.20 (basic4android v3.50).
My phone has Android 2.3.6 but also in an Android 4.0 I get the same error.

When method Initialize is called the app crash and exit without show any error message.

The code I use is this and in the Files I added the icudt46l.zip:
B4X:
Dim SQLDB As SQLCipher
SQLDB.Initialize(File.DirRootExternal, "dbintime.db", True, DBPsw,"")

Where is my misatke?

Thanks for help!!!

Fabio

The error log is this:

<!>anywheresoftware.b4a.BA 513<!> ~e:net.sqlcipher.database.SQLiteException: not an error
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:1951)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:901)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:948)
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:51)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:680)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:308)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at abcnetwork.intempo.main.afterFirstLayout(main.java:98)
at abcnetwork.intempo.main.access$100(main.java:16)
at abcnetwork.intempo.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3737)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
 
Top