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 <[email protected]> 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 [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