Android Question GPS position

Carta

Member
is it possible through a button to save the current GPS position and then recall it through another button? starting maps
 

josejad

Expert
Licensed User
Longtime User
Check the GPS example

As you can see, you can save it instead of assigning to lalLat and lblLon.

B4X:
Public Sub LocationChanged(Location1 As Location)
   lblLat.Text = "Lat = " & Location1.ConvertToMinutes(Location1.Latitude)
   lblLon.Text = "Lon = " & Location1.ConvertToMinutes(Location1.Longitude)
   lblSpeed.Text = $"Speed = $1.2{Location1.Speed} m/s "$
End Sub
 
Upvote 1
Top