******* UPDATE: After rebooting the phone this error has gone away?????
I am using FusedLocationProvider. It works just fine on a Samsung S6 phone with Android 7.0. However on a Moto Droid phone with Android 6.0.1 I get the error shown in the topic. The code is shown below. I have tried it with and without an .initialize statement in various locations without success. On the Samsung there is no .init statement and it works well.
I am using FusedLocationProvider. It works just fine on a Samsung S6 phone with Android 7.0. However on a Moto Droid phone with Android 6.0.1 I get the error shown in the topic. The code is shown below. I have tried it with and without an .initialize statement in various locations without success. On the Samsung there is no .init statement and it works well.
B4X:
Sub FLP_ConnectionSuccess()
Log("FLP_ConnectionSuccess")
LastLocation.Initialize ' (this doesn't seem to help)
LastLocation = FLP.GetLastKnownLocation
GetAddress(LastLocation.Latitude,LastLocation.longitude)
End Sub
Last edited: