Oh, the check mark. I hadn't hovered over it so I wasn't aware of what it signified. Thanks Teddy.At the post #48 you can see this
View attachment 155027
Logger connected to: samsung SM-S911U
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
b4xmainpage_initialize (java line: 492)
android.database.sqlite.SQLiteException: error code 14: Could not open database
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092)
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52)
at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492)
at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706)
at b4a.example.main._activity_create(main.java:365)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at b4a.example.main.afterFirstLayout(main.java:105)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
b4xmainpage_initialize (java line: 492)
android.database.sqlite.SQLiteException: error code 14: Could not open database
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092)
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52)
at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492)
at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706)
at b4a.example.main._activity_create(main.java:365)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at b4a.example.main.afterFirstLayout(main.java:105)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
b4xmainpage_initialize (java line: 492)
android.database.sqlite.SQLiteException: error code 14: Could not open database
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092)
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52)
at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492)
at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706)
at b4a.example.main._activity_create(main.java:365)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at b4a.example.main.afterFirstLayout(main.java:105)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
All those java references are beyond my understanding. I successfully entered my sqlcipher password when checking the working of the db browser, but after the seemingly successful compilation while communicating with my S23 Samsung, the above large error report is written in my logs in the IDE.On compiling, I'm getting the following error message in part:
B4X:Logger connected to: samsung SM-S911U --------- beginning of main *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** b4xmainpage_initialize (java line: 492) android.database.sqlite.SQLiteException: error code 14: Could not open database at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092) at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52) at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492) at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706) at b4a.example.main._activity_create(main.java:365) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221) at b4a.example.main.afterFirstLayout(main.java:105) at b4a.example.main.access$000(main.java:17) at b4a.example.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** b4xmainpage_initialize (java line: 492) android.database.sqlite.SQLiteException: error code 14: Could not open database at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092) at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52) at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492) at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706) at b4a.example.main._activity_create(main.java:365) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221) at b4a.example.main.afterFirstLayout(main.java:105) at b4a.example.main.access$000(main.java:17) at b4a.example.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** b4xmainpage_initialize (java line: 492) android.database.sqlite.SQLiteException: error code 14: Could not open database at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092) at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52) at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492) at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706) at b4a.example.main._activity_create(main.java:365) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221) at b4a.example.main.afterFirstLayout(main.java:105) at b4a.example.main.access$000(main.java:17) at b4a.example.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
It's better if you can provide code and the database sample.All those java references are beyond my understanding. I successfully entered my sqlcipher password when checking the working of the db browser, but after the seemingly successful compilation while communicating with my S23 Samsung, the above large error report is written in my logs in the IDE.
Hopefully some clarity can be given to me by someone here in the forum.
This is a runtime error. where is your database?On compiling, I'm getting the following error message in part:
B4X:Logger connected to: samsung SM-S911U --------- beginning of main *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** b4xmainpage_initialize (java line: 492) android.database.sqlite.SQLiteException: error code 14: Could not open database at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092) at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52) at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492) at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706) at b4a.example.main._activity_create(main.java:365) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221) at b4a.example.main.afterFirstLayout(main.java:105) at b4a.example.main.access$000(main.java:17) at b4a.example.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** b4xmainpage_initialize (java line: 492) android.database.sqlite.SQLiteException: error code 14: Could not open database at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092) at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52) at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492) at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706) at b4a.example.main._activity_create(main.java:365) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221) at b4a.example.main.afterFirstLayout(main.java:105) at b4a.example.main.access$000(main.java:17) at b4a.example.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create (first time) ** b4xmainpage_initialize (java line: 492) android.database.sqlite.SQLiteException: error code 14: Could not open database at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2600) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1250) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1217) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1189) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1138) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1092) at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:52) at b4a.example.b4xmainpage._initialize(b4xmainpage.java:492) at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:706) at b4a.example.main._activity_create(main.java:365) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221) at b4a.example.main.afterFirstLayout(main.java:105) at b4a.example.main.access$000(main.java:17) at b4a.example.main$WaitForLayout.run(main.java:83) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
You are missing the database "test3 db.db".Here's the wetransfer code for my zipped test project:
https://wetransfer.com/downloads/0772d9f53b6f89e3a31f6b496bcaea9920240701164103/c89febc8d98a7a98ff431105a389dcf120240701164104/3f9203
You can copy the B4xMainPages.bas I posted at #68 to your project at #67, then replace the "test3 db.db" with yoursIt looks somewhat like it should. I don't know how to isolate and post my db.
I think B4A Bridge is not related.Any chance there's a special B4A Bridge when using sqlcipher? I've been continuing using the standard B4A Bridge.
Thanks, I'll give it a try again in the morning. Unfortunately I think I have two separate db files with the same name "dbircv11.db". Each is in a separate folder which allows them to be named the same.I have attached the project using SQLCipher. it works.
you need to adapt it to your requiement
There is no problem to use SqlCipher. as Erel said."
B4A SQLCipher is a special subtype of SQL object. There is almost no need to change any code in order to switch from regular SQL to SQLCipher.
The only difference between SQL API and SQLCipher API is the Initialize method."
if you have any other questions, you'd better start a new thread for ask
Yes, this is the method suggested by Erel.I still have no display of the app although the compilation occurs without a hitch. Perhaps I'll start over with a working non encrypted working project and covert it to sqlcipher like I did just before I started this thread.
Again, thanks to Aeric and Teddybear for your generous efforts.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?