If gps1.GPSEnabled = False Then
ToastMessageShow("Abilitare il GPS sul tuo Device.", True)
StartActivity(gps1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
gps1.Start(0, 0) 'Listen to GPS with no filters.
Else
ToastMessageShow("GPS No permission!!!", True)
Log("GPS No permission!!!")
End If
End If