I need to get my speed from myLocation , it always returns 0 ... I need help
@Override
public void onLocationChanged(Location location) {
Log.e("location",String.valueOf(location.getSpeed()));
}
Simply getSpeed()
method only returns the speed if it is available,
If this location does not have a speed then 0.0 is returned.
If you are sure you have proper speed to be shown and has to be returned something surely then consider this codes, And try making your's same as that one.