How to get permission for using pedometer Sensor?

Currently i am working on a Step Counter app with enough functionality including pedometer

i know some android studio so when i ask for android.permission.ACTIVITY_RECOGNITION
it shows error 908 what does it mean and how to ficx it?

please help me with this topic

  • i am new user of community sorry if any mistake…

this most probably means, that this permission is not available in the manifest
unfortunately you forgot to show us your relevant blocks, so we only can guess