Questions tagged [pedometer]

A pedometer is a device, usually portable and electronic or electromechanical, that counts each step a person takes by detecting the motion of the person's hands or hips. Because the distance of each person's step varies, an informal calibration, performed by the user, is required if presentation of the distance covered in a unit of length (such as in kilometers or miles) is desired, though there are now pedometers that use electronics and software to automatically determine how a person's step varies. Distance traveled (by walking or any other means) can be measured directly by a GPS tracker.

Used originally by sports and physical fitness enthusiasts, pedometers are now becoming popular as an everyday exercise counter and motivator. Often worn on the belt and kept on all day, it can record how many steps the wearer has walked that day, and thus the kilometers or miles (distance = number of steps × step length). Some pedometers will also erroneously record movements other than walking, such as bending to tie one's shoes, or road bumps incurred while riding a vehicle, though the most advanced devices record fewer of these 'false steps'. Step counters can give encouragement to compete with oneself in getting fit and losing weight. A total of 10,000 steps per day, equivalent to 8 kilometres (5.0 mi), is recommended by some to be the benchmark for an active lifestyle, although this point is debated among experts. Thirty minutes of moderate walking are equivalent to 3,000-4,000 steps as determined by a pedometer. Step counters are being integrated into an increasing number of portable consumer electronic devices such as music players, smartphones, and mobile phones.

From Wikipedia: https://en.wikipedia.org/wiki/Pedometer

91 questions
0
votes
0 answers

Step sensor (Or an equivalent) on android 4.1

I am working on a project where one of the options is to use a the step sensor in an android phone to count steps. The phone i am using is the Samsung GT-S5310, running android Jelly Bean 4.1.2 (API 16). I have been looking into the API for the step…
0
votes
1 answer

Can one detect if their phone has moved?

I want to know if my android phone has been moved at all in the last 20 minutes. I was thinking of using the step counter, but my phone doesn't have one (only on high end models it seems), so I'm out of luck there. I was also thinking about using…
baash05
  • 4,394
  • 11
  • 59
  • 97
0
votes
0 answers

Swift - Repeat function depending on time of the day

Users open my app and click on "start". So far so good. After they click start they can put the app in the background and do what they want. Every 30 minutes the app should send a notification if the users have not done at least 200 steps How to…
Andrea
  • 31
  • 1
  • 5
0
votes
1 answer

ActionScript Air Android Project Pedometer stops if display is locked

I built an Android app with a Pedometer, the Pedometer works fine if the app is running. But if I lock the Screen button the Pedometer stop counting, if I unlock the Screen the Pedometer just works fine again, how can I make the Pedometer run even…
Jaan
  • 251
  • 1
  • 6
  • 16
0
votes
2 answers

Pedometer in fragment

I am trying to use the pedometer sensor in a fragment to count the number of steps that has been taken since the device last rebooted. I can get the pedometer working in an Activity but cannot seem to get it working in the fragment. I am new to…
0
votes
0 answers

Swift walking distance calculated

I want to calculate walking distance after click button.I used CMPedometer for application but I don't want to use CMPedometer. I will make it with location info. I used core location framework but I don't trust this variable.I share with you mine…
Baran Karaoğuz
  • 236
  • 1
  • 12
0
votes
0 answers

Android custom progressbar for pedometer app

I'm working on fitness app. For that app I have to make curve progress bar and in this curve I have to display foot step, calorie and goal. I am displaying as just text view. But how to make curve progress bar I want to display daily goal? If he…
androidking
  • 207
  • 5
  • 17
0
votes
2 answers

I am working on a simple pedometer app, and it has these errors, for the following code

package com.example.ritwik.letswalk; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.support.v7.app.AppCompatActivity; import…
0
votes
1 answer

Pedometer simple app "Fatal error: unexpectedly found nil while unwrapping an Optional value"

Noob IOS Dev can't figure out the error please, please some help thread1: EXC_BREAKPOINT (code=1,subcode=0x1003591fc) Ive tried everything I could and nothing (well everything I understood from other codes) var pedometer :CMPedometer! var stepCount…
siege007
  • 3
  • 1
0
votes
1 answer

Cordova Plugin Pedometers

I try to put this plugin on my Android app https://github.com/leecrossley/cordova-plugin-pedometer I put this on my OnDeviceReady : var successHandler = function (pedometerData)…
0
votes
1 answer

Grand total of steps taken by user - Android Application Stepometer

I have an application which has an in game stepometer so calculates the user's steps in the background as they play the game. It works fine, my issue is the following Have a grand total of steps taken by the user since starting to play the…
Nicholas
  • 125
  • 2
  • 12
0
votes
2 answers

iOS : CMPedometer / Framework Error when install in device, it's run in simulator

I am getting error in CMPedometer, with i am install my app in iPhone device, i have iPhone 4s and iPhone 6s both have same issue. Here with attached screenshot of issue Project Link : https://github.com/versluis/Pedometer in both device have iOS…
Bhavesh Dhaduk
  • 1,888
  • 15
  • 30
0
votes
1 answer

How to avoid the initial delay in readings from Android step counter?

I have written the code to count the number of steps implementing the SensorListener class. But the problem is that onSensorChanged method is called after certain number of steps. It seems that it has to verify that these calls are as a result of…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
votes
1 answer

Calculate total time for the steps counted in the pedometer code in android

I am able to show the steps taken using pedometer code but I want to show the total time taken for those steps too.
Harry
  • 137
  • 1
  • 2
  • 5
-1
votes
1 answer

Reset the user's step count to 0

I am working on a health care application with a pedometer function. I am using the CMPedometer class to start counting step, but I am looking for a way that can set the pedometer's Step Count to 0 after midnight and start counting steps for the…