ThePuiu Active Member Licensed User Longtime User Sep 16, 2020 #1 I want to use KeyValueStore to store usernames and other application variables. I added the KeyValueStore.b4xlib library to the Additional Libraries folder and included the library in the project. In B4A we use the code: B4X: Copy Dim kvs As KeyValueStore kvs.Initialize(File.DirAssets, "myapp.dat") ..... but now the file cannot be created automatically because the folder is readonly. How should I proceed? Thank you!
I want to use KeyValueStore to store usernames and other application variables. I added the KeyValueStore.b4xlib library to the Additional Libraries folder and included the library in the project. In B4A we use the code: B4X: Copy Dim kvs As KeyValueStore kvs.Initialize(File.DirAssets, "myapp.dat") ..... but now the file cannot be created automatically because the folder is readonly. How should I proceed? Thank you!
Semen Matusovskiy Well-Known Member Licensed User Sep 16, 2020 #2 Use writeable folder File.DirDocuments. Last edited: Sep 16, 2020 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2020 #3 This code will not work in B4A. Best option: XUI.DefaultFolder. Upvote 0