Android Question GPS and location.Distanceto

Fillmore

Member
Licensed User
Longtime User
Hi,

I need to know how many meters a runner has ran.
So i use the Location.distanceTo between actual point and prtevious point.

But it doesn't work. The distance increased even my phone stay in the same place.
There is a way to correct it ?

THanks a lot.

Fred
 

Attachments

  • gps test.zip
    8.4 KB · Views: 462

Fillmore

Member
Licensed User
Longtime User
That's what I thought, but, when the distance increase, the speed stay at 0... I will try with your advices. Thanks a lot.

Fred
 
Upvote 0
Top