Recently I tried to make an app which gives user step count. And came across step count and detector which was introduced in Android 4.4. but I can't find a way to do step counting hourly basis. I am new to this any guidance will be highly appreciated
I found on this https://developer.android.com/reference/android/hardware/SensorManager.html#registerListener(android.hardware.SensorEventListener, android.hardware.Sensor, int)
That editing the third parameter I can specify delay while doing following boolean registerListener (SensorEventListener listener, Sensor sensor, int samplingPeriodUs)
But it accepts value in milliseconds and convert one hour into milliseconds gives a very large int value. Can anyone guide on how to deal with it