Alpha Video Training
Results 1 to 4 of 4

Thread: Android App - Google Maps Launch

  1. #1
    Member
    Real Name
    Scott Moore
    Join Date
    Oct 2010
    Posts
    247

    Default Android App - Google Maps Launch

    Hey Everyone,

    Been working this one for a while and no solution - thought I would see if anyone has solved the problem.

    I have an Android app that has a simple map super control. The user clicks the button and Alpha populates the google URL with the address.

    In my web based version when used on a smart phone, when the user clicks the button it launches the address look up in the Google Maps app (which is very convenient). However, in my Android app the exact same super control launches the address look up in a browser on google.com/maps. The web based version of google maps has much less functionality.

    So the question is how to use a map super control on an Android app to trigger the lookup in the Google Maps app and not the web version of Google maps??

    Thanks,

    Scott

  2. #2
    Member
    Real Name
    Sean OKelly
    Join Date
    Sep 2015
    Location
    Charleston, WV
    Posts
    205

    Default Re: Android App - Google Maps Launch

    I think you would have to determine that it's on mobile, then supply a different function. The new function would have to use a google phonegap plugin to open the resource. I haven't tried this...just a thought.

  3. #3
    Member
    Real Name
    Scott Moore
    Join Date
    Oct 2010
    Posts
    247

    Default Re: Android App - Google Maps Launch

    Update -

    So I think I have figured out the problem and solution but I will continue to test. The problem is that when you click the link the map is opened in the Cordova in app browser. If you try and use one of the enhanced map features like directions that would normally launch the Google Maps app, this action causes an error because you are not in a normal webrowser but the Cordova in app browser.

    So, the solution seems to be to have this setting in the target setting properties for the link (Browser Window Name). Instead of the default _blank,_parent etc. enter _system. This triggers the launch of the extrnal browser and from there things are normal.

    This might come in handy for other users, since the in app browser would likely have other limitations when trying to use other external apps.

    If this solution doesn't carry through to the final app release I will let the group know.

    Cheers,

    Scott

  4. #4
    Member
    Real Name
    Sean OKelly
    Join Date
    Sep 2015
    Location
    Charleston, WV
    Posts
    205

    Default Re: Android App - Google Maps Launch

    Interesting. Thanks for the update. I'm sure it will come in handy down the road for someone else.

Similar Threads

  1. Replies: 4
    Last Post: 05-31-2018, 05:10 PM
  2. Google maps using Google API don't show in a panel.
    By Michael1954 in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 07-05-2016, 08:46 AM
  3. Maps Snap to Road in Google Maps
    By chadbrown in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 05-04-2015, 02:04 PM
  4. Google Maps
    By ADCO Service in forum Alpha Five Version 11 - Desktop Applications
    Replies: 4
    Last Post: 08-02-2013, 07:59 AM
  5. Google Makes Subtle Change to Google Maps - Breaks Maps in Grids and Dialogs
    By Selwyn Rabins in forum Application Server Version 11 - Web/Browser Applications
    Replies: 14
    Last Post: 07-27-2012, 08:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •