Skip to content

Instantly share code, notes, and snippets.

@jgilfelt
Created July 27, 2010 07:56
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgilfelt/491916 to your computer and use it in GitHub Desktop.
Save jgilfelt/491916 to your computer and use it in GitHub Desktop.
Android Maps - Directions between two points Intent
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?f=d&saddr=53.447,-0.878&daddr=51.448,-0.972"));
intent.setComponent(new ComponentName("com.google.android.apps.maps",
"com.google.android.maps.MapsActivity"));
startActivity(intent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment