Android Question WRITE_EXTERNAL_STORAGE on List Permissions list

sirjo66

Well-Known Member
Licensed User
Longtime User
Not a very problem, but......

When I run in "debug" mode I write my files in File.DirDefaultExternal so I can watch it and I can control if it works fine, but when I run in "release" mode I write my files in File.DirInternal so I don't need WRITE_EXTERNAL_STORAGE permissions and all works very well.

So I use this code in Main activity:
B4X:
Sub Process_Globals
#if DEBUG
   Public MyDir As String = File.DirDefaultExternal
#else
   Public MyDir As String = File.DirInternal
#End If
End Sub

But when I select "Debug" mode, and click "List Permissions" on "Logs" tab, don't appeare android.permission.WRITE_EXTERNAL_STORAGE

If I change to
B4X:
Sub Process_Globals
   Public MyDir As String = File.DirDefaultExternal
End Sub

on "List Permissions" it appeare correctly

Sergio
 
Top