Step Counter – Pedometer Android App Source CodeStep Counter – Pedometer Android App Source Code
Android 7.0+ pedometer with foreground service, live stats, GPS route map, BMI calculator, 7‑day charts, and history (Room DB)Step Counter – Pedometer Android App Source Code
Android 7.0+ pedometer with foreground service, live stats, GPS route map, BMI calculator, 7‑day ...
Overview
A ready-to-publish Java Android app that counts steps in the background via the step-detector sensor, shows distance/speed/pace/calories in real time, tracks routes on Google Maps, and stores every session locally. It includes BMI calculation, 7‑day step and calorie charts (MPAndroidChart), a persistent history list, and a profile screen for name/weight/height/goal. Built with view binding, Room, Material components, and Google Play Services; minSdk 23, target/compile 36
Features
- Foreground step counter service with start/stop and notification
- Live stats: distance (km), speed (km/h), pace, calories, goal progress
- GPS route tracking on Google Maps with polyline
- 7‑day charts: steps (bar), calories (line) via MPAndroidChart
- BMI calculator with category labels
- History screen storing all sessions in the room database
- Profile screen for name/weight/height/step goal (SharedPreferences)
- Boot receiver to resume step service after restart
- Modern gradient UI with cards and Material widgets
- Clean Java codebase with view binding enabled
Requirements
Latest Android Studio with JDK 8+ and Android SDK API 26+ installed; project targets/compiles API 36 and minSdk 23
Physical Android device with step-detector sensor (emulator lacks sensor)
Google Maps API key and Location/Activity Recognition permissions at runtime
Instructions
1) Unzip and open the `StepCounter` project in Android Studio.
2) Add your Google Maps key in `app/src/main/res/values/strings.xml` as `google_maps_key` and mirror it in `AndroidManifest.xml` metadata.
3) Ensure `settings.gradle`/root repos include `maven { url 'https://jitpack.io' }` (already present).
4) Sync Gradle, then Build → Make Project.
5) Run on a physical device, grant Activity Recognition + Fine Location, tap “Start Counter” to begin.
Other items by this author
| Category | App Templates / Android |
| First release | 25 March 2026 |
| Last update | 25 March 2026 |
| Operating Systems | Android 7.0, Android 8.0, Android 9.0, Android 10.0, Android 11.0, Android 12.0 |
| Files included | Layered .png, .apk, .db, .java, .xml |
| Tags | bmi calculator app, fitness tracker, step counter android, room database, calorie counter, pedometer app, codester android app, gps walking tracker, step goal tracker, mpandroidchart, google maps route, activity recognition, health fitness app, walking distance tracker, android java source |








