Introduction

In this tutorial we will be creating a simple step counter app from scratch with kotlin in android studio. This app will use Sensor.TYPE_STEP_COUNTER to count steps and will display it in very basic UI.

I'm not focusing much on the UI part. you can create that according to your need.

Requirements

First you will require Android Studio to actually make the app and then you will require access to an android handset to test and use the app.

Procedure

  1. Download code from my github repo.(Link in try it out section)
  2. Open android studio and go to File<Open.
  3. Select the root folder you downloaded.
  4. Give it some time to open up.
  5. Connect your android device using USB cable and enable USB Debugging on it.
  6. hit the play button on the top right of android studio and let the app get installed on your handset.
  7. You are done with apk building and are good to use the apk.

Built With

Share this project:

Updates