Spanish [SOLUCIONADO] Toolbar GoogleMaps

Jose Rojas

Member
Licensed User
Estimados alguien sabe alguna manera de pulsar el boton de navegacion de googlemaps pero via codigo (intent) pero que abra la pantalla de la ruta sin iniciar la navegacion.
Adjunto la imagen de a pantalla que necesito abra pero via codigo (sin pulsarlo manualmente)

Screenshot_20220825-171301_Maps.jpg
 

TILogistic

Expert
Licensed User
Longtime User
option 2
B4X:
    Dim    locCur As String = "-33.4513,-70.6653"
    Dim    locDes As String = "-33.41169, -70.55000"
    Dim Url As String =  "http://maps.google.com/maps?" & "saddr=" & locCur & "&daddr=" & locDes
    Dim intent1 As Intent

    intent1.Initialize(intent1.ACTION_VIEW, Url)
    intent1.SetComponent("android/com.android.internal.app.ResolverActivity")
    StartActivity(intent1)

1661477233427.png
 
Upvote 1

TILogistic

Expert
Licensed User
Longtime User
without indicating destination

B4X:
    Dim    locCur As String = "-33.4513,-70.6653"
    Dim    locDes As String = ""
    Dim Url As String =  "http://maps.google.com/maps?" & "saddr=" & locCur & "&daddr=" & locDes
    Dim intent1 As Intent

    intent1.Initialize(intent1.ACTION_VIEW, Url)
    intent1.SetComponent("android/com.android.internal.app.ResolverActivity")
    StartActivity(intent1)

1661477726523.png
 
Upvote 0
Top