5

I want to develop an Android App, which will give me the speed with which I am travelling. Please suggest me some webSites from where I can get some help.

I know there is a function like Location.getSpeed(). But don't know how exactly it works.

Kleist
  • 7,785
  • 1
  • 26
  • 30
Shishir Shetty
  • 2,021
  • 3
  • 20
  • 35
  • You should find documentation describing how the function is used. Where have you looked? –  Jun 01 '11 at 12:02
  • location.setSpeed() not working. You should calculate it like distance/time – MSaudi Feb 05 '14 at 12:40

1 Answers1

8

First read this article to learn how to get GPS fixes.

You can call getSpeed() in your location listener, in the onLocationChanged() callback.

Reno
  • 33,594
  • 11
  • 89
  • 102