I have two apps, both target APK 26 and both include this code
One of the apps works fine in that if the Permission is false then the android message box pops up and asks me to allow it. However, PermissionResult does not get called (see below). I see "Result = False" in the logs but no "PermissionResult = False"
The second app shows "sending message to waiting queue (activity_permissionresult)" in the logs but again the sub does not fire but, and much more importantly, the android message is NOT displayed.
I have tried calling from different places in the app such as a btn_Click but cannot get the dial box to come up.
B4X:
Sub Activity_Resume
If Not(ExternalFilesAllowed) Then
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
Log("Result = " & Result)
...
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
Log("PermissionResult = " & Result)
...
One of the apps works fine in that if the Permission is false then the android message box pops up and asks me to allow it. However, PermissionResult does not get called (see below). I see "Result = False" in the logs but no "PermissionResult = False"
The second app shows "sending message to waiting queue (activity_permissionresult)" in the logs but again the sub does not fire but, and much more importantly, the android message is NOT displayed.
I have tried calling from different places in the app such as a btn_Click but cannot get the dial box to come up.