Android Question Intent to Google Maps Go [Solved]

AHilberink

Active Member
Licensed User
Longtime User
Hi,

Does anyone know the Intent to start Google Maps Go?

I can only find the Intent to Google Maps.

Kind regards,
André
 

toby

Well-Known Member
Licensed User
Longtime User
1. Make sure that Google Maps Go is the only Maps app installed on your device.
If there are other maps apps installed, select Google Maps go when prompted.
2. Add following code
B4X:
    Dim MapIntent As Intent
    Dim uri As String = $"geo:${latitude},${longitude}?q=${address}"$
    uri=su.DecodeUrl(uri, "UTF8")
    MapIntent.Initialize(MapIntent.ACTION_VIEW, uri)
    StartActivity(MapIntent)
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
1. Make sure that Google Maps Go is the only Maps app installed on your device.
If there are other maps apps installed, select Google Maps go when prompted.
2. Add following code
B4X:
    Dim MapIntent As Intent
    Dim uri As String = $"geo:${latitude},${longitude}?q=${address}"$
    uri=su.DecodeUrl(uri, "UTF8")
    MapIntent.Initialize(MapIntent.ACTION_VIEW, uri)
    StartActivity(MapIntent)

Thanks for this code. I already had this possibility to choose.
I did not ask the correct question, sorry.

What I was looking for is the SetPackage of Maps Go.

I use for GoogleMaps this code:
B4X:
in.SetPackage("com.google.android.apps.maps")

Is there also one for Go? All information I could find was of the normal GoogleMaps.

Kind regards,
André
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
Try package name: com.google.android.apps.mapslite
It didn't work for me.

User only needs to select once Always Google Maps Go
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
Try package name: com.google.android.apps.mapslite
It didn't work for me.

User only needs to select once Always Google Maps Go

That did the job. Great. Thanks.

It worked for me. I did add:
B4X:
AddManifestText(<queries>
    <package android:name="com.google.android.apps.mapslite" />
  </queries>)

to my manifest. Not sure it was neccesary, but I had a simular for Maps.
 
Upvote 0
Top