Hi All
A problem that is hard to phrase the question directly.
In the manifest this line throws an error in the KVS Module [V1.01} The same error occurs if miniSDKVersion is changed to "4". [ more on this below]
The Error log in part.
This appears to point to the Initializee sub in the KVS module.
The conundrum:
If I alter the Manifest to:
[Replacing the "4" with "5" brings back the KVS issue.]
I get a warning that the App was built for an older version of Android etc. If I ignore this warning, the App loads an runs OK. [No KVS issue]
Do I persue the KVS problem? Help!!!
Do I just run with the "Old Version" warning?
Any thoughts?
Regards Roger
EDIT: Code in Activity Create that calls the KVS. kvs.initialize appears twice in this code, as I am installing fresh on each occasion it will be the second instance that is causing the current issue. If I install using Version "4" the change to Version "5" and install over the top I get a third problem of views appearing in the wrong order. IE I can see views that should be hidden behind others.
A problem that is hard to phrase the question directly.
In the manifest this line throws an error in the KVS Module [V1.01} The same error occurs if miniSDKVersion is changed to "4". [ more on this below]
B4X:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
The Error log in part.
keyvaluestore_initialize (java line: 256)
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1294 SQLITE_CANTOPEN_ENOENT[1294]): Could not open database at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:284)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java
This appears to point to the Initializee sub in the KVS module.
B4X:
'Initializes the store and sets the store file.
Public Sub Initialize (Dir As String, FileName As String)
If sql1.IsInitialized Then sql1.Close
sql1.Initialize(Dir, FileName, True)
CreateTable
End Sub
The conundrum:
If I alter the Manifest to:
B4X:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<uses-sdk android:minSdkVersion="4" />
I get a warning that the App was built for an older version of Android etc. If I ignore this warning, the App loads an runs OK. [No KVS issue]
Do I persue the KVS problem? Help!!!
Do I just run with the "Old Version" warning?
Any thoughts?
Regards Roger
EDIT: Code in Activity Create that calls the KVS. kvs.initialize appears twice in this code, as I am installing fresh on each occasion it will be the second instance that is causing the current issue. If I install using Version "4" the change to Version "5" and install over the top I get a third problem of views appearing in the wrong order. IE I can see views that should be hidden behind others.
B4X:
If File.Exists(File.DirDefaultExternal, "datastore") Then
kvs.Initialize(File.DirDefaultExternal, "datastore")
Else
For FNM = 0 To 15 'Write "Strings" in to Recording
For STEPS = 0 To 999
For DATA2 = 0 To 1
Recording(FNM,STEPS,DATA2) = "" 'Recording2(FNM,STEPS,DATA2)
Next
Next
Next
For FNM = 0 To 15 'Write "Strings" in to Results
For STEPS = 0 To 4
For DATA2 = 0 To 1
Results(FNM,STEPS,DATA2) = "" 'Results2(FNM,STEPS,DATA2)
Next
Next
Next
For FCol = 0 To 15 'Write "Strings" in to Fcolours
Fcolours(FCol) = "" 'Fcolours2(FCol)
Next
kvs.Initialize(File.DirDefaultExternal, "datastore")
kvs.PutObject("history", History)
kvs.PutObject("storelist", storelist)
kvs.PutObject("fnumlist", FNumList)
kvs.PutObject("Recording", Recording)
kvs.PutObject("Results", Results)
kvs.PutObject("Settings", Settings)
kvs.PutObject("Fcolours", Fcolours)
End If
Last edited: