Called when the Android device reports a new location.
speed units - the LocationSensor reports speed in m/sec units), convert to km/hr if you want speed in kilometers (1000 meters) and also be aware m/sec must be addressed to convert kilometers/hour. m/sec * km/1000m * 60 sec/min * 60 min/hour = km/hour .
Speed has a second component, the TimeInterval ... how frequently you update the LocationSensor to determine a satellite fix. The initial satellite fix usually takes about 30-40 seconds; subsequent fixes dependent on factors discussed in the tutorial takes at least 10 to 20 seconds and how good a GPS receiver is in your Android, so it makes little sense to set the TimeInteral to less than about 20000 ms (20 seconds). This means, the speed will update at the best, every 20 seconds if even that.
Does this information help?
Regards,
Steve