Android Question SQLCipher on KitKat

Rusty

Well-Known Member
Licensed User
Longtime User
I have been running several programs on pre-KitKat tablets and they have been running on hundreds of devices across the US, without fail.
The programs all use SQLCipher when i use b4abridge and connect to a pre-KitKat tablet all works wonderfully ;
Then I disconnect from the pre-KitKat tablet and immediately connect to the KitKat tablet
then I try to run them on KitKat i get:


The SQLCipher file is icudt46l.zip
The library is v1.20

B4X:
If Main.SQLSurvey.IsInitialized = False Then
Try              'assume it's cipher encrypted
       Main.SQLSurvey.initialize("/storage/emulated/0/survey/data", "database.db3", False, Main.SqliteKey, File.DirAssets )
Catch  'in case the sqlite file is NOT encrypted
     Main.SQLSurvey.initialize("/storage/emulated/0/survey/data", "database.db3", False, "", File.DirAssets)            
End Try
End If

Is there something I need to do to make the exact same working code to work on KitKat and use the SQLCipher library?
Thanks,
Rusty
 
Last edited:

Daniel-White

Active Member
Licensed User
Longtime User
I am using SQLcipher too, one question, the DB exist ?, before execute the next code:
Main.SQLSurvey.initialize("/storage/emulated/0/survey/data", "database.db3", False, Main.SqliteKey, File.DirAssets)

What append if change False to True, ?

what happen if change the path :
/storage/emulated/0/survey/data
By
/storage/emulated/legacy/survey/data

Daniel White
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks Erel,
Always a pleasure to work with you and the "blog". That worked! Both on KitKat and prior
Rusty
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…