1. Download our Official Android App: Forums for Android!

Apps Open URLs in Google Maps App

Discussion in 'Android Development' started by MaFt, Oct 13, 2009.

  1. MaFt

    MaFt New Member
    Thread Starter

    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!!!



  2. njohnston

    njohnston New Member

    May 11, 2010
    I am also very interested in this functionality. I would like to create hyperlinks in a mobile website that will launch Google Maps GPS software in my Incredible and then populate the destination field. Some sort of trick URL would be perfect.
  3. ge0rgecz

    ge0rgecz Member

    Nov 4, 2008
    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
    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.

Share This Page