Case study · 2026
CompletedRS 660 Companion
A native Android app for Aprilia RS 660 riders: it records rides from phone GPS, keeps a garage history and syncs an offline-first event log to a private backend. An independent university project.
- Role
- Android development · University project
- Year
- 2026
- Stack
- Kotlin, Android · XML + ViewBinding, Room, DataStore + Protobuf, Retrofit + WorkManager, Python backend

01
Project Overview
RS 660 Companion is a native Android app for riders of the Aprilia RS 660. It records rides using the phone's GPS, keeps a permanent garage history of maintenance, fuel and tires, and synchronises everything to a private backend when one is connected. It's an independent university project, not affiliated with Aprilia, and it never connects to the motorcycle's electronics.
02
Problem
A ride app has to work where there is no signal, survive being closed in the background and never lose a record. It also has to be honest: a phone's GPS is not the bike's own telemetry, and an app shouldn't pretend otherwise.
03
Solution
The local Room database is the single source of truth. Every change is saved together with an outgoing event in one transaction, and a background worker uploads those events once a network is available. A foreground service records the ride, and every screen labels its data as Phone GPS or Demo so it can't be mistaken for verified motorcycle telemetry.
04
My Role
Android development · University project
- Multi-module Android architecture: app, domain, data, tracking, sync and protobuf modules
- MVVM with one-way data flow: ViewModels, StateFlow and ViewBinding fragments
- Room database with a transactional outbox, plus Preferences and Proto DataStore
- Foreground location service with a live notification and GPS filtering
- WorkManager sync over Retrofit with safe repeats and retry of rejected events
- Custom views: an animated speed gauge and an offline route preview
- Reference backend in Python with token authentication, plus unit and device tests
05
Tech Stack
- Kotlin
- Android · XML + ViewBinding
- Room
- DataStore + Protobuf
- Retrofit + WorkManager
- Python backend
Connected planets
06
Key Features
01
Live cockpit
Start a ride and watch live GPS speed on a custom animated gauge, with distance and accepted GPS fixes.
02
Ride history
Every ride is saved with distance, duration, top speed and a route preview drawn without map tiles.
03
Garage
Permanent records for maintenance, fuel, tires and inspections, each with its odometer reading.
04
Recording profiles
Road, Sport and Touring profiles change how often GPS is sampled — never the motorcycle's own settings.
05
Offline-first sync
The app works fully offline. Once a backend is connected, queued events upload in the background, and an exact repeat is accepted safely.
06
Privacy by default
Shared ride statistics leave out coordinates, the backend token is encrypted with the Android Keystore, and backups are switched off.
07
Screenshots




08
Challenges
- 01
Never losing a record
A record and its outgoing event are committed together, uploads carry stable IDs, and the backend accepts an exact repeat while rejecting a reused ID with different content.
- 02
GPS you can trust
A filter rejects inaccurate fixes, impossible coordinates, stale gaps, timestamps that run backwards and jumps faster than 120 metres per second.
- 03
Recording in the background
The foreground service starts from a visible tap, so no background-location permission is needed. It handles rapid start and stop, and marks an interrupted ride on the next launch.
09
What I Learned
- An offline-first app is mostly about deciding what happens when something fails halfway.
- Labelling where data comes from is part of the interface, not a footnote.
- Splitting an app into modules keeps dependencies pointing in one direction.
- Device tests catch what unit tests can't, like a platform API that has disappeared.
10
Result
A complete, installable Android app with a reference backend, and tests for the ride maths, the sync engine and the backend protocol.
- Gradle modules
- 6
- Main screens
- 5
- Minimum Android
- 8.0
Next mission
Skill Galaxy
This portfolio — an interactive galaxy where technologies are planets and projects are the constellations that connect them.
Read case study