I used getspeed method in service and it is giving me wrong outputs.
speed = location.getSpeed();
I tested it well and my speed was around 100 km/hr and get speed method was giving value 25 (value of speed variable was 25) . Why is it so? And yes now my phone is lying still on table and it is giving value as 1.75 . I expected 0 at this time. Why this unknown behavior?