rleiman Well-Known Member Licensed User Longtime User Apr 24, 2018 #1 Hi Everyone, Can you tell me why the code I have commented out crashes my app but the uncommented code works? I also have over 9gb free storage on the external card. Thanks. B4X: kvs.Initialize(File.DirInternal, "Settings") ' kvs.Initialize(File.DirDefaultExternal, "Settings")
Hi Everyone, Can you tell me why the code I have commented out crashes my app but the uncommented code works? I also have over 9gb free storage on the external card. Thanks. B4X: kvs.Initialize(File.DirInternal, "Settings") ' kvs.Initialize(File.DirDefaultExternal, "Settings")
udg Expert Licensed User Longtime User Apr 24, 2018 #2 https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content Upvote 0
rleiman Well-Known Member Licensed User Longtime User Apr 24, 2018 #3 udg said: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content Click to expand... Hi udg, Thanks for the reply and link. Yay, no more crashing. I made the changes and it works perfectly. Here's the final coding changes. In Process_Globals: B4X: Private strShared As String In a sub routine that I initialise objects: B4X: strShared = rp.GetSafeDirDefaultExternal("Settings") kvs.Initialize(strShared, "Settings") Upvote 0
udg said: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content Click to expand... Hi udg, Thanks for the reply and link. Yay, no more crashing. I made the changes and it works perfectly. Here's the final coding changes. In Process_Globals: B4X: Private strShared As String In a sub routine that I initialise objects: B4X: strShared = rp.GetSafeDirDefaultExternal("Settings") kvs.Initialize(strShared, "Settings")