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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.