Android Question External write permissions...

Skipsy19

Member
Hi All,
I have spent hours on the forum and I understand :
B4X: Copy
Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
should show the dialog requesting for external writing autorisation...
... But I only goet a white screen.

B4X: Copy
Sub Activity_Create(FirstTime As Boolean)

    ' >>>>>>>>>>>>>>>>>>> test
    Dim rp As RuntimePermissions
    
    rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
    Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
    Log(Permission & " : " & Result)
    Log(File.DirRootExternal) ' needed for permission
    Log(Permission)
    Log($"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Result}"$)
    End If
    
    end sub
    ' >>>>>>>>>>>>>>>>>>>>>

Any idea ???
Thks.
 
Back
Top