B4X:
Dim rp As RuntimePermissions
For Each permission As String In Array(rp.PERMISSION_GET_ACCOUNTS,rp.PERMISSION_READ_CONTACTS)
rp.CheckAndRequest(permission)
Wait For B4XPage_PermissionResult (permission As String, Result As Boolean)
If Result = False Then
Log(permission & " denied")
Return
End If
Next
If we grant it and call it again, code crash & through error:
B4X:
Sub activity_permissionresult was not found.
Any explanation?