Skip to content

Instantly share code, notes, and snippets.

@johannilsson
Created November 17, 2009 21:44
Show Gist options
  • Save johannilsson/237292 to your computer and use it in GitHub Desktop.
Save johannilsson/237292 to your computer and use it in GitHub Desktop.
Time time = new Time();
time.setToNow();
Uri routesUri = Uri.parse(
String.format("journeyplanner://routes?start_point=%s&end_point=%s&time=%s",
"Telefonplan", "TCE", time.format2445()));
Intent routesIntent = new Intent(Intent.ACTION_VIEW, routesUri);
startActivity(routesIntent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment