Hi all.
I've got this error today - never seen it before.
Fused Location Provider error java.lang.IllegalStateException: GoogleApiClient is not connected yet.
What does it mean and what to do?
Could it be caused by the Airplane mode On or the used turned off Location permission?
Error happened here
To my understanding if we already in this sub that means that we receive lat/long already.
Thanks.
I've got this error today - never seen it before.
Fused Location Provider error java.lang.IllegalStateException: GoogleApiClient is not connected yet.
What does it mean and what to do?
Could it be caused by the Airplane mode On or the used turned off Location permission?
Error happened here
B4X:
Sub UpdateUI
Try
Main.Latitude=LastLocation.Latitude
Main.Longitude=LastLocation.Longitude
'Log("Lat=" & Main.Latitude & " Long=" & Main.Longitude)
FusedLocationProvider1.RemoveLocationUpdates
FusedLocationProvider1.Disconnect
ProgressDialogHide
Catch
ProgressDialogHide
Log("UpdateUI " & LastException.Message)
modFun.ShowError("NursesNotes_UpdateUI " & LastException.Message)
End Try
End Sub
To my understanding if we already in this sub that means that we receive lat/long already.
Thanks.