There's a geo URI you can use with an ACTION_VIEW intent to show a
location in the Google Maps app:
http://developer.android.com/intl/zh-CN/guide/appendix/g-app-intents.html

The user can then get directions to the location by using the menu in
the Google Maps app and choosing to select a destination by tapping on
the map.

Using Google Maps URLs also seems to work. For example, "http://
maps.google.com/maps?
saddr=42.35892,-71.05781&daddr=40.756054,-73.986951" instead of a geo
URI will bring up a "Complete action using" dialog that includes
Google Maps on my G1 phone. Choosing Google Maps then immediately
jumps into the driving directions mode. I haven't seen that documented
anywhere, however, so don't know how reliable it is.

On Nov 27, 3:35 am, Geoffrey Monté <[email protected]> wrote:
> Hello,
> I'm trying to learn the Android SDK but I have a problem, and no issue
> found on this group.
>
> In fact: I have an object "Store" with the properties "Latitude" and
> "Longitude".
> I want put a button which launch the google maps app and which prepare
> the direction, like that.
>
> I found no docs about this subject...
> Thanks all.
>
> NB : the french are often loosers in english. I am one of them !

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to