• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Open URLs in Google Maps App

Not sure if this should be classed as a 'developer' question so please move it if you don't think it's appropriate for here!

I'm working on an LBS website (http://FindStuffNear.me - UK only POIs) - it is still work in progress but the main parts work. The final search page has a link to Google Maps. Now, the iPhone hijacks any http links to Google Maps pages and shows it in the native maps app (also does similar for YouTube). There is no special code needed for this to happen.

Is there a way in the Android browser to force links to open in the Google Maps app? Either as javascript or maybe a 'special' url like gmap://maps.google.com?q=.... etc?

Any help appreciated! Doing a web search for it brings up too much unrelated stuff - you try searching for GOOGLE, MAP and ANDROID!!!

MaFt
 
you dont need any special link ...

just use ordinary link to google maps like

this one http://maps.google.com/maps?hl=en&q=prague,+czech

link encoded in qr code
img.php

use barcode scanner, open it in browser, and your mobile google maps application will be launched automaticaly

android browser automaticaly detects it and opens it in mobile application google maps for android (or any other installed map application, instead of web service) + user can change this behavior.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones