I have this code in a service, based in Background locate tracking, without notifications.
I want to show the latitude and longitude in a label, that is on the main activity.
How I can do this?
Thanks in advance for any tip.
B4X:
Sub GPS_LocationChanged (Location1 As Location)
If DateTime.Now > LastUpdateTime + 15 * DateTime.TicksPerSecond Then
LastUpdateTime = DateTime.Now
Log(gpm.isInside(Location1.Latitude,Location1.Longitude,True))
End If
End Sub
I want to show the latitude and longitude in a label, that is on the main activity.
How I can do this?
Thanks in advance for any tip.