S Setlodi Active Member Feb 6, 2024 #1 Hi, there I hope you experts can help me. I have 3 apps: Main app, Second app, Third app. Main app has a form which users fill in and the data is stored in the form.dat file using KVS. Now I want Second app and Third app to have access to form.dat and access the info using KVS. I have copied the file form.dat to the shared folder: Code: Copy shared = rp.GetSafeDirDefaultExternal("") File.Copy(File.DirInternal, "form.dat", shared, "form.dat") Do I need to use FileProvider here? Now I have no idea how to initialize the file form.dat which is saved in a shared folder. Code: Copy KVS.Initialize("What do I put here???", "form.dat") What path must I put in order to access form.dat in the shared folder? Also do I need permissions to access the file from other apps? Do I need to specify the path here? B4X: Copy KVS.Get("Name")) Thanks in advance
Hi, there I hope you experts can help me. I have 3 apps: Main app, Second app, Third app. Main app has a form which users fill in and the data is stored in the form.dat file using KVS. Now I want Second app and Third app to have access to form.dat and access the info using KVS. I have copied the file form.dat to the shared folder: Code: Copy shared = rp.GetSafeDirDefaultExternal("") File.Copy(File.DirInternal, "form.dat", shared, "form.dat") Do I need to use FileProvider here? Now I have no idea how to initialize the file form.dat which is saved in a shared folder. Code: Copy KVS.Initialize("What do I put here???", "form.dat") What path must I put in order to access form.dat in the shared folder? Also do I need permissions to access the file from other apps? Do I need to specify the path here? B4X: Copy KVS.Get("Name")) Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2024 #2 Two apps cannot share files. The various options to access external files are described here: SaveAs - Let the user select a target folder + list of other related methods Upvote 0
Two apps cannot share files. The various options to access external files are described here: SaveAs - Let the user select a target folder + list of other related methods