[android-developers] Re: Maps with directions.
you might like to try
Location src,dst;
//...set src/dst locations
String uri=String.format("http://maps.google.com/maps?f=d&saddr=%f,
%f&daddr=%f,%f&hl=en"
,src.getLatitude(),src.getLongitude()
,dst.getLatitude(),dst.getLongitude());
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(uri)));
On Sep 7, 9:45 am, tatebn <brandonnt...@gmail.com> wrote:
> Is it possibly to have a button in my app that switches to the phone's
> Maps application while passing in a destination for directions? And
> how would I do that? Haven't been able to find anything about it.
>
> Thanks
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home