D Dane du Plooy Member Licensed User Oct 31, 2018 #1 What is the best way to ensure that DirDefaultExternal exists? I am using KeyValueStore, however it crashes on Initialize if DirDefaultExternal (or specifically it's parent directory) has not yet been created.
What is the best way to ensure that DirDefaultExternal exists? I am using KeyValueStore, however it crashes on Initialize if DirDefaultExternal (or specifically it's parent directory) has not yet been created.
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2018 #2 You should never use File.DirDefaultExternal. See runtime permissions tutorial. Why do you need to save the store in the secondary storage? Why not use File.DirInternal? Upvote 0
You should never use File.DirDefaultExternal. See runtime permissions tutorial. Why do you need to save the store in the secondary storage? Why not use File.DirInternal?
D Dane du Plooy Member Licensed User Oct 31, 2018 #3 No idea :-D. New to B4A and working from sample code / rushing - changed to DirInternal / RunTimePermissions.GetSafeDirDefaultExternal . Thanks! Upvote 0
No idea :-D. New to B4A and working from sample code / rushing - changed to DirInternal / RunTimePermissions.GetSafeDirDefaultExternal . Thanks!