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
1 answer

Pedometer Flutter Package Error MissingPluginException(No implementation found for method listen on channel step_detection)

Hi everyone and thanks for reading. I am using the Pedometer package (here https://pub.dev/packages/pedometer ) which is basically a step counter and am getting the following issue. The Error and my Android Manifest file I am using the boiler…
Andrea herrera
  • 81
  • 1
  • 11
0
votes
0 answers

Getting CMPedometer data in background

I just want to build a step counting app for iphones. My application runs correctly when in foreground and save the step data to the firebase but when user terminate the app, the step counting stops so I dug the internet to solve the problem and…
0
votes
1 answer

Is there a way to exclude an app that requires pedometer from the App Store?

I'm working on an app that requires step counting. There are several devices that don't support this feature (for example in my iPad mini 2, CMPedometer.isStepCountingAvailable() returns false). Since the app heavily relies on the pedometer, I'd…
phi
  • 10,634
  • 6
  • 53
  • 88
0
votes
0 answers

OnSensorChane not being called in some devices

I have tried integrating pedometer. I have came across one issue that onSensorChanges is not being called in specifically ONEPLUS 8 Can any one help ? I am registering listener as below sensorManager.registerListener(SensorService.this, sSensor,…
Vir Rajpurohit
  • 1,869
  • 1
  • 10
  • 23
0
votes
1 answer

React-Native Pedometer values issue (Android)

I'm using rn-universal-pedometer to get steps count and distance data in an app. This is working all great in iOS app. But in Android app there are some issues. If I check live steps and distance and stop the listener, and query back the past data,…
0
votes
0 answers

What algorithm can I use to count steps using Accelerometer and Gyroscope?

I need to count steps using data from Accelerometer and Gyroscope from a cellphone. What algorithm can I use considering I have these data? Where my Accelerometer describes the velocity of the device, but don't include gravity. Example: (x: 0.3, y:…
bluesparrow
  • 43
  • 1
  • 10
0
votes
1 answer

Update value of CircularProgressRing to values selected in 7 day chart

I'm in the progress of making a pedometer and using UICircularProgressRing from luispadron. I'm trying to update my circularProgressRing to show the current state of the ring to what the user has selected in the 7 day lineChart. For example: user…
Terry Lee
  • 1
  • 1
0
votes
0 answers

Pedometer in Android studio

I'm trying to build a simple Step counter using sensor in android, I'm pretty sur the response is simple but actually i cant figure out public class Main2Activity extends AppCompatActivity { private SensorManager sensorManager; private Sensor…
Beatles BOB
  • 333
  • 1
  • 13
0
votes
0 answers

How to Implement Step Counter in Android Studio If Pedometer Sensor Not Available

I have a Samsung phone which apparently doesn't have a Pedometer (step counter) because when I use TYPE_STEP_COUNTER it says doesn't have one. So after searching online, I came across an implementation using accelerometer censor. But the problem is…
miatech
  • 2,150
  • 8
  • 41
  • 78
0
votes
1 answer

Service sending multiple Broadcast Messages

I am implementing a StepCounter in Java for Android. I created a service which is started as ForegroundService if there isn't another instance of this Service already. package com.**.service.services; import android.app.Notification; import…
DrEichenbach
  • 382
  • 1
  • 2
  • 13
0
votes
0 answers

How to connect the data created from CMPedometer to Firebase?

I'm trying to create a healthcare application and am using Core Motion's CMPedometer to obtain live step count. However, I wanted the step count to be uploaded in real time to Firebase, as well as to return this data stored in Firebase to display…
0
votes
1 answer

Flutter - Triggering StreamSubscription onData Manually

I am using pedometer plugin in flutter, and one thing I noticed is that when I open the app after a while, the number of steps displayed does not update until I make steps while the app is opened in order to trigger onData method of the…
M20
  • 1,032
  • 2
  • 15
  • 34
0
votes
0 answers

How to count steps in real time in iOS using Xamarin

I wrote an interface and android implementation for counting steps using Android SensorService. Now I'm trying to do the same for iOS. I can't find any code examples about this topic apart from this…
irondsd
  • 1,140
  • 1
  • 17
  • 34
0
votes
1 answer

CMPedometer queryPedometerData() returning 0 steps when steps exist

There seems to be a bug in the CMPedometer queryPedometerData() method. The method is returning 0 steps for certain end times, but the same query with the timestamp 1 second higher or lower returns the correct number of…
Joe Walsh
  • 210
  • 1
  • 11
0
votes
1 answer

Core Motion Pedometer Save Timer Data when in Background

I've started to play with the Pedometer and it's working just fine. I've made a timmer that will show me the working out time and it's working perfectly tracking the Activity Type. The Pedometer will update in the background automatically, however,…
Marian Petrisor
  • 262
  • 2
  • 19