How many strides to get there? An Android stride calculator from 2014, dragged onto AndroidX and properly debugged a decade later.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dixon D'Cunha f6d02479fd
chore: modernize and preserve project for archival
- Replace SlidingLayer/Validator/Inscription external project deps with
  AndroidX DrawerLayout and inline validation; remove external sibling
  module references from settings.gradle
- Upgrade build toolchain: AGP 0.12 → 8.7, compileSdk 20 → 35,
  minSdk 17 → 21, targetSdk 19 → 35; switch plugin from library → application
- Migrate Activity → AppCompatActivity; update theme to AppCompat;
  replace deprecated AdMob initialization with MobileAds.initialize()
- Fix all missing imports (Context, ArrayAdapter, Resources, HashMap, Map, Toast)
- Fix Female shoe-size conversion (returned 0.0 for all female sizes)
- Fix ShoeConversion data: size 9.5 was 23.67 cm (typo), corrected to 26.67
- Add static map initializers to Distance, ShoeConversion, RegionConversion
  (previously repopulated on every call)
- Remove dead code: openScreenLoaded field, unused setFont() method,
  Boolean[] paid array in SportsCompiler, double initializeAds() call,
  hardcoded AdMob test device ID
- Fix blink thread lifecycle leak in AFRun (Handler.removeCallbacks on destroy)
- Remove Thumbs.db Windows artifact, unused xidsplash.png, analytics.xml,
  and redundant API-level style folders (v11/v14, superseded by AppCompat)
- Add Female and regional (UK/AUS/JAP) options to spinner arrays in strings.xml
- Rewrite README with accurate project description and build instructions
- Add LICENSE (CC BY-NC-SA 3.0, copyright 2014 Dixon D'Cunha)
- Add root build.gradle, gradle.properties, proguard-rules.pro
- Update .gitignore to cover .claude/, Thumbs.db, IDE folders
2026-06-27 23:55:42 -04:00
AthletesFootApp chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00
.gitignore chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00
build.gradle chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00
gradle.properties chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00
LICENSE chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00
README.md chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00
settings.gradle chore: modernize and preserve project for archival 2026-06-27 23:55:42 -04:00

Athlete's Foot

An Android app that calculates how many steps it takes to cover a given distance, based on your shoe size and region. Useful for sports like soccer, basketball, and cricket where you want to estimate how many strides fit between fixed points on a field.

Features

  • Supports 9 distance units: cm, mm, m, km, in, ft, yd, miles, nautical miles
  • Supports shoe sizes 3.5–14 (US sizing) with regional offset for US, UK, AUS, and Japanese sizing
  • Supports male and female shoe sizing
  • Sports presets (Baseball, Basketball, Cricket) auto-fill the distance field
  • Sidebar drawer with expandable sport categories

Project Structure

AthletesFootApp/
└── src/main/
    ├── java/com/exikle/athletesfoot/
    │   ├── AFRun.java               # Splash/entry Activity
    │   ├── Gender.java              # Male/Female enum
    │   ├── adapter/
    │   │   ├── ExpandableListViewAdapter.java  # Sports preset sidebar list
    │   │   └── SpinnerAdapter.java             # Spinner factory
    │   ├── conversions/
    │   │   ├── ConversionCalculator.java  # Orchestrates distance → steps
    │   │   ├── RegionConversion.java      # Regional shoe-size offset
    │   │   └── ShoeConversion.java        # US shoe size → cm foot length
    │   ├── debug/
    │   │   ├── AFLog.java                 # Log wrapper
    │   │   └── DebugToast.java            # Toast helper
    │   ├── distance/
    │   │   └── Distance.java              # Distance unit → cm conversion
    │   ├── screens/
    │   │   └── Input.java                 # Main calculator Activity
    │   └── sports/
    │       ├── Presets.java               # Facade over SportsCompiler
    │       └── SportsCompiler.java        # Parses assets/sports.xml
    ├── assets/
    │   ├── sports.xml       # Sport/preset definitions (free vs. paid)
    │   └── Emilio 19.ttf   # Custom display font
    └── res/
        ├── layout/          # opening.xml (splash), input.xml (calculator)
        ├── drawable-*/      # Launcher icons, backgrounds
        ├── anim/            # Fade transition animations
        └── values/          # Strings, colors, dimensions, styles

Build

Requires Android Studio (Hedgehog or newer) or the Android command-line tools.

# Debug build
./gradlew :AthletesFootApp:assembleDebug

# Release build (requires a signing keystore)
./gradlew :AthletesFootApp:assembleRelease

Minimum SDK: API 21 (Android 5.0 Lollipop)
Target SDK: API 35 (Android 15)

Adding Sports

Edit AthletesFootApp/src/main/assets/sports.xml:

<sport name="Tennis" paid="false">
    <preset name="Baseline" value="23.77" />
</sport>

Set paid="true" to disable a sport's presets in the UI (locked state).

License

Copyright 2014 Dixon D'Cunha
Licensed under CC BY-NC-SA 3.0.