I am trying to show in my application the steps that the user walked per day in real time but I am not able to. I tried to get the steps using TYPE_STEP_COUNT_CUMULATIVE
but I am able to get all the steps from the day that user started using the application.
When I tried to use other type, for example DELTA
, it's not working. Not sure if I am missing something. I am able to get the daily steps from HISTORY API but I cannot use them for real time because UI does not allow to use await()
.
Any suggestions?