The rp.CheckAndRequest is not executed when i use Wait for Mapfragment1_Ready.
Only run if i remove that line.
B4X:
GPS.Initialize("gps")
Wait For MapFragment1_Ready
gmap = MapFragment1.GetMap
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
gmap.MyLocationEnabled = True
GPS.Start(0, 0)
Else
Log("No permission!")
End If