I’m wanting to build an application that will tell me how far I’ve ran. I was thinking I could keep a list of all GPS coordinates in a List and then do distance formula on them in sequential pairs. I’m not sure this is the best way to do this though. I’m also worried about the GPS picking up a “bad” coordinate and ruining my recorded distance.
Thanks
Use
LocationManager.requestLocationUpdates(..)to register your LocationListener.Also use such Criteria, so that only updates with certain accuracy get reported.
This is a very nice tutorial on acquiring location on Android: http://developer.android.com/guide/topics/location/obtaining-user-location.html