Sorry but that's just a web URL, not the Navigation App.
I found out how to do it by applying a bit of guesswork after reading this
page (suggested previously by Lance, thanks Lance)
http://developer.android.com/intl/zh-CN/guide/appendix/g-app-intents.html
Intent i = new Intent(Intent.ACTION_VIEW,
Uri.parse("google.navigation:q=New+York+NY));
startActivity(i);
On Wed, Dec 16, 2009 at 11:45 PM, lk <[email protected]> wrote:
> for opening in navigation mode try this--
> Intent navigation = new Intent(Intent.ACTION_VIEW, Uri.parse(“http://
> maps.google.com/maps?
> saddr=42.35892,-71.05781&daddr=40.756054,-73.986951<http://maps.google.com/maps?%0Asaddr=42.35892,-71.05781&daddr=40.756054,-73.986951>
> ”));
> startActivity(navigation);
>
> where saddr = latitude and longitude of starting point.
> and daddr = latitude and longitude of destination point.
>
>
> thanks
>
> On Dec 12, 10:57 am, Declan Shanaghy <[email protected]> wrote:
> > Well yes it is the maps app but i want to launch in in Navigation mode,
> not
> > just a plain ole map.
> > This is for a Droid specific app, which has Android 2.0 with Google
> > Navigation.
> >
> >
> >
> > On Fri, Dec 11, 2009 at 4:37 PM, Lance Nanek <[email protected]> wrote:
> > > Do you mean the Google Maps app? For that you can use an intent with
> > > an ACTION_VIEW action and URI like this:
> > > geo:0,0?q=my+street+address
> >
> > > Documented on this page:
> > >http://developer.android.com/intl/zh-CN/guide/appendix/g-app-intents..
> ..
> >
> > > On Dec 11, 4:48 pm, Declan Shanaghy <[email protected]> wrote:
> > > > Hello,
> > > > I realize this might not be the proper place to post this since it's
> not
> > > > Android specific, but rather its about integrating with a google app.
> >
> > > > I've been trying to find some documentation on launching /
> controlling
> > > the
> > > > Google Navigation app via Intents or otherwise.
> > > > I was hoping to find an intent to launch the navigation app with
> address
> > > > parameters setup and start navigation immediately.
> >
> > > > Can't find anything out there, so I'm still not even sure if it can
> be
> > > done.
> >
> > > > Anyone have any ideas?
> >
> > > > Thanks,
> > > > Dek
> >
> > > > --
> > > > "An engineer's definition of done is the perfect set of code, and
> left to
> > > > his own devices, an engineer will endlessly improve the code on the
> > > mythic
> > > > journey to done."
> > > > --http://www.randsinrepose.com
> >
> > > > [DS]
> >
> > > --
> > > 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]<android-developers%[email protected]>
> <android-developers%[email protected]<android-developers%[email protected]>
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > "An engineer's definition of done is the perfect set of code, and left to
> > his own devices, an engineer will endlessly improve the code on the
> mythic
> > journey to done."
> > --http://www.randsinrepose.com
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
"An engineer's definition of done is the perfect set of code, and left to
his own devices, an engineer will endlessly improve the code on the mythic
journey to done."
-- http://www.randsinrepose.com
--
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