Create a Step Counter App for Android with Kotlin
In that tutorial, you are going to discover how to create a Step Counter Fitness Application for Android with Kotlin. A good way to discover how to make a simple application in Kotlin on Android Studio.
- Steps Count data show in the Activity
- Steps Count data show in notification bar (background service support)
- Steps Count data show with widgets view on the device home screen
Referenece link Here (https://developer.android.com/guide/topics/sensors/sensors_overview)
(I am really sorry friends, My english is not good)
IF you want to use my steps service class, you can easy put this features in your codesbase.
For Start Service,
StepSensorService.startService(this)
For Stop Service,
StepSensorService.stopService(this)