That is not documented or supported. It presumes a certain implementation and will fail at some point in the future when Google modifies the application.
On Wed, Jan 5, 2011 at 10:07 AM, Carlos Silva <r3...@r3pek.org> wrote: > Here's how I make it: > > btnNav.setOnClickListener(new OnClickListener() { > > @Override > > public void onClick(View v) { > > StringBuilder url = new StringBuilder(); > > url.append("http://maps.google.com/maps?f=d&hl=en"); > > url.append("&saddr="); > > url.append( > Double.toString((double)GlobalVars.positioner.getLastGeoPoint().getLatitudeE6()/1.0E6 > )); > > url.append(","); > > url.append( > Double.toString((double)GlobalVars.positioner.getLastGeoPoint().getLongitudeE6()/1.0E6 > )); > > url.append("&daddr="); > > url.append( > Double.toString((double)pharm.getGeoPoint().getLatitudeE6()/1.0E6 )); > > url.append(","); > > url.append( > Double.toString((double)pharm.getGeoPoint().getLongitudeE6()/1.0E6 )); > > url.append("&dirflg=d&nav=1"); > > Intent intent = new Intent(Intent.ACTION_VIEW); > > intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > intent.setData(Uri.parse(url.toString())); > > intent.addFlags(0x10800000); > > > intent.setClassName("com.google.android.apps.m4ps", > "com.google.android.maps.driveabout.app.NavigationActivity"); > > > > > try { > > ctx.startActivity(intent); > > } catch (ActivityNotFoundException e) { > > > intent.setClassName("com.google.android.apps.maps", > "com.google.android.maps.driveabout.app.NavigationActivity"); > > try { > > ctx.startActivity(intent); > > } catch (ActivityNotFoundException e2) > { } > > } > > } > > }); > > > On Wed, Jan 5, 2011 at 15:01, pedr0 <pulsarpie...@gmail.com> wrote: >> >> Ouch! >> >> I can't start the navigator in any way?! >> >> Bye! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en