I am able to show the steps taken using pedometer code but I want to show the total time taken for those steps too.
Asked
Active
Viewed 602 times
0
-
Please show your code what you have done. – SripadRaj Aug 25 '16 at 07:46
-
I am using the code from below link. https://github.com/bagilevi/android-pedometer. – Harry Aug 26 '16 at 07:11
-
are u still looking for this... i have a solution for u – jafarbtech Aug 31 '16 at 07:41
-
@jafarbtech I need solution for this. Would you kindly provide this? – Shourob Datta Mar 23 '21 at 14:27
1 Answers
0
for this you have to make it as a walking session oriented. because it will count whenever a user steps. so u have to save the current time when the user steps first or when he clicks start walking session button and you can get the last stepping time from initializing the current time in a global variable in StepDisplayer -> onStep get the difference between these times to get the total duration

jafarbtech
- 6,842
- 1
- 36
- 55