Android Question Permission WRITE_EXTERNAL_STORAGE dangerous?

Pooya1

Active Member
Licensed User
I saw you used
B4X:
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
Upvote 0

Pooya1

Active Member
Licensed User
Thanks for your reply
I try to run app and get error,but it is working now :eek:
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
Top