AHilberink Well-Known Member Licensed User Longtime User Sep 27, 2021 #1 Hi, Does anyone know the Intent to start Google Maps Go? I can only find the Intent to Google Maps. Kind regards, André
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 Sep 27, 2021 #2 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
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)
AHilberink Well-Known Member Licensed User Longtime User Sep 28, 2021 #3 toby said: 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) Click to expand... 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 said: 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) Click to expand... 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é
toby Well-Known Member Licensed User Longtime User Sep 28, 2021 #4 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
Try package name: com.google.android.apps.mapslite It didn't work for me. User only needs to select once Always Google Maps Go
AHilberink Well-Known Member Licensed User Longtime User Sep 30, 2021 #5 toby said: Try package name: com.google.android.apps.mapslite It didn't work for me. User only needs to select once Always Google Maps Go Click to expand... 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
toby said: Try package name: com.google.android.apps.mapslite It didn't work for me. User only needs to select once Always Google Maps Go Click to expand... 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.