• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Mobile accelerometer and suspended mode rate

New Here ,
Mar 20, 2015 Mar 20, 2015

Copy link to clipboard

Copied

Hi!

I am building an app that will, among other things, act as a pedometer.  After much sweat I managed to build a pretty reliable code to detect steps by using, among other things, a dot product of the three axes values and a weighted moving average to smooth the result.  Now the problem I seem to be struggling with is when the app is in background.  The update event rate seems to be ~2x slower (4-5 updates per second) and sometimes the movement doesn't seem to register at all.

I am testing on IOS, on Android I have yet to manage having the accelerometer work in background at all.

Is it a bug? Is there something I can do?

Any help would be really appreciated.

Thanks!

TOPICS
Performance issues

Views

233

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 20, 2015 Mar 20, 2015

Copy link to clipboard

Copied

LATEST

I made some checks on android and the event is indeed triggered but only 2x per second.  Needless to say this is not enough to have sensible data.  Any thoughts?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines