I'm using the location manager (1.10) into a service.
I active the locantion and disable after the first coordinations, but sometimes (on boot) the function (Location_LocationChanged) is called 2 times.
can i have a single call to function ?
Thanks
I active the locantion and disable after the first coordinations, but sometimes (on boot) the function (Location_LocationChanged) is called 2 times.
can i have a single call to function ?
Thanks
B4X:
Sub Service_Start (StartingIntent As Intent)
Log ("Service_Start")
Location.Initialize("Location")
Location.requestMobileLocation
End Sub
Sub Location_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)
Log("Lon: " & Longitude & " - Lat: " & Latitude)
Location.stopMobileListening
others code.......
end sub