Android Question Open Google Places in browser, not the Google map app

biometrics

Active Member
Licensed User
Longtime User
I'm trying to open the browser to Google Places with a place id but it's opening the Google map app. How can I get it to load the browser and not the Google map app?

The URL works on my PC browser.

I've tried:
B4X:
Dim p As PhoneIntents
 
StartActivity(p.OpenBrowser("https://www.google.com/maps/search/?api=1&query_place_id=" & sPlaceId))

and

B4X:
Dim p As PhoneIntents
 
StartActivity(p.OpenBrowser("https://www.google.com/maps/place/?q=place_id:" & sPlaceId))

Thanks
 

MarkusR

Well-Known Member
Licensed User
Longtime User
maybe u clicked once in browser open with google map app? browser cookies? cache?
what happens if you enter this url direct in your phone browser?
 
Upvote 0

biometrics

Active Member
Licensed User
Longtime User
Try this:
B4X:
Dim pi As PhoneIntents
Dim i As Intent = pi.OpenBrowser("https://www.google.com/maps/search/?api=1&query_place_id=" & sPlaceId)
i.WrapAsIntentChooser("coose")
StartActivity(i)

It opens a dialog at the bottom of the display with the title "coose" and has only the Maps icon to select. So it didn't open the browser.
 

Attachments

  • coose.jpg
    coose.jpg
    95.4 KB · Views: 241
Upvote 0
Top