How do I save a KVS to disk? I searched "save keyvaluestore" and none of those threads actually explain how to save the KVS to disk. Unless I missed it... which is very possible.
When you initialize it, you must pass the directory in which it will be saved.
B4X:
Dim kvs As KeyValueStore
kvs.Initialize(File.DirApp, "FileName") ' application folder (objects folder)
'or
kvs.Initialize(File.DirData, "FileName") ' windows user data folder
When you initialize itm you must pass the directory in which it will be saved.
B4X:
Dim kvs As KeyValueStore
kvs.Initialize(File.DirApp, "FileName") ' application folder (objects folder)
'or
kvs.Initialize(File.DirData, "FileName") ' windows user data folder