Pooya1 Active Member Licensed User Apr 23, 2018 #1 I saw you used Code: Copy Dim p As RuntimePermissions dim path as string path = p.GetSafeDirDefaultExternal for get current ExternalDir without use permission But when i use this code and deny Storage permission in app's permissions,my app force stoped I need folder that copy all file example notification sound or other to it without request permission from user And some library need copy needing file to external Do i mistake or GetSafeDirDefaultExternal require user permission? Sorry for My mistakes
I saw you used Code: Copy Dim p As RuntimePermissions dim path as string path = p.GetSafeDirDefaultExternal for get current ExternalDir without use permission But when i use this code and deny Storage permission in app's permissions,my app force stoped I need folder that copy all file example notification sound or other to it without request permission from user And some library need copy needing file to external Do i mistake or GetSafeDirDefaultExternal require user permission? Sorry for My mistakes
Erel B4X founder Staff member Licensed User Longtime User Apr 23, 2018 #2 Pooya1 said: But when i use this code and deny Storage permission in app's permissions,my app force stoped Click to expand... Please post the full error message. The steps required to use GetSafeDirDefaultExternal are explained in the video tutorial: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/ Upvote 0
Pooya1 said: But when i use this code and deny Storage permission in app's permissions,my app force stoped Click to expand... Please post the full error message. The steps required to use GetSafeDirDefaultExternal are explained in the video tutorial: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/
Pooya1 Active Member Licensed User Apr 23, 2018 #3 Thanks for your reply I try to run app and get error,but it is working now I went to app's permission in setting and i saw there is no permission for WRITE_STORAGE Actually i uninstall app and install again and my problem solved (I use external folder without needing require user permission) Upvote 0
Thanks for your reply I try to run app and get error,but it is working now I went to app's permission in setting and i saw there is no permission for WRITE_STORAGE Actually i uninstall app and install again and my problem solved (I use external folder without needing require user permission)