R ralvy Member Licensed User Sep 4, 2016 #1 I'm a B4X newbie exploring the KeyValueStore module in Android and iOS. In the B4A example project for KVS, there's a Starter module that initializes KVS like this: Code: Copy Sub Service_Create kvs.Initialize(File.DirDefaultExternal, "datastore2") End Sub I assume I need something like that on the B4i side of things. Two questions arise: 1. Since B4i had no Starter module, do I place that in as a method after Sub Process_Globals and before Private Sub Application_Start? 2. What File member would be the equivalent of DirDefaultExternal on the B4i side of things?
I'm a B4X newbie exploring the KeyValueStore module in Android and iOS. In the B4A example project for KVS, there's a Starter module that initializes KVS like this: Code: Copy Sub Service_Create kvs.Initialize(File.DirDefaultExternal, "datastore2") End Sub I assume I need something like that on the B4i side of things. Two questions arise: 1. Since B4i had no Starter module, do I place that in as a method after Sub Process_Globals and before Private Sub Application_Start? 2. What File member would be the equivalent of DirDefaultExternal on the B4i side of things?
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2016 #2 1. No. You place it inside Application_Start. This is always the entry point. 2. See this short tutorial for more information about the various folders: https://www.b4x.com/android/forum/threads/files-and-folders.46137/#content You should probably use File.DirLibrary or DirDocuments. Upvote 0
1. No. You place it inside Application_Start. This is always the entry point. 2. See this short tutorial for more information about the various folders: https://www.b4x.com/android/forum/threads/files-and-folders.46137/#content You should probably use File.DirLibrary or DirDocuments.