Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codeswimmer/901665 to your computer and use it in GitHub Desktop.
Save codeswimmer/901665 to your computer and use it in GitHub Desktop.
Android: determine the current speed
public static final float getCurrentSpeed(double location, int formatType) {
Location location = Location.convert(location, formatType)
return location.getSpeed();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment