I want to distance between tow end points using accelerometer or orientation sensors. (For one of jogging app)
I can use GPS to.But GPS will not return accurate distance in some case.I wan to measure distance even if user is taking turns while walking,even when he/she is using stairs (In case of stairs GPS will not work.).
Any code snippet will be a good guidance to start with.