1. Edit: In B4XPages the permission result event signature is: Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) 2. Important to read: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content If the targetSdkVersion is...
www.b4x.com
especially the area of "READ_EXTERNAL_STORAGE / WRITE_EXTERNAL_STORAGE"
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result = True Then
Activity.LoadLayout("main")
Log(rp.GetSafeDirDefaultExternal(""))
Else .....
End If