I need to locate the position of a vehicle through the GPS from another phone, a phone with the GPS active and a command by text message that sends GPS coordinates, by another phone I get the coordinates via GPS and google maps to know the position of the vehicle.
I managed to get the GPS coordinates but I can not visulizzare the point of the vehicle to control,
from the vehicle I get the following code: Lat Lon 37:39,0332 12:15,5578
of this code can take the result of latitude and longitude and insert them into their texbox, a button will open google maps, but I get the following error: Unable to load the url,
does anyone know why?
here is a piece of my code.
I managed to get the GPS coordinates but I can not visulizzare the point of the vehicle to control,
from the vehicle I get the following code: Lat Lon 37:39,0332 12:15,5578
of this code can take the result of latitude and longitude and insert them into their texbox, a button will open google maps, but I get the following error: Unable to load the url,
does anyone know why?
here is a piece of my code.
B4X:
Sub btnmap_Click
Dim Intent1 As Intent
lat=txtlat.Text
lon=txtlon.Text
URI= "geo:" & lat & "," & lon & "?q=" & lat & "," & lon
Intent1.Initialize(Intent1.ACTION_VIEW,URI)
Intent1.SetComponent("googlemaps")
StartActivity(Intent1)
End Sub