Back to Portfolio

Interval Timer: HIIT & Tabata

A HIIT, Tabata and custom interval timer that keeps exact time with the screen off, says every change out loud, and never locks a preset behind a subscription.

No account · Works offline · Screen-off accurate · 8 languages

AndroidKotlinJetpack ComposeForeground serviceAdMobPlay Billing
Red running screen for Tabata: WORK, round 3 of 8, 0:14 in very large digits, next rest 0:10, 2:44 left, with back, pause and skip

Problem

Interval timers are a crowded category on Google Play, and the reviews of the leaders say the same things: presets and customisation locked behind a subscription, timers that drift, timers that stop when the screen locks, and beeps or vibration that go missing mid-workout. A timer you cannot trust with the phone face down on the floor is not much of a timer.

Solution

I built a timer whose clock is computed, not counted: elapsed time is always read from Android's monotonic clock minus pauses, so a late tick can never make the workout late. A foreground service keeps it alive with the screen off and holds a wake lock only while the clock runs, so the 3-2-1 beeps, spoken phase names and vibration arrive on time. Presets are unlimited and free, from Tabata to custom lists of named steps; the only purchase removes the ads.

One Tabata, start to finish

The workout was started for real on an emulator; the presets and three weeks of history are the same in every language of the store listing.

Swipe to see more screens →

What it does

In the same order as the screenshots above.

⏱️

Exact with the screen off

A computed clock, a foreground service and a wake lock held only while running — 80 seconds locked was 80 seconds on the timer.

♾️

Unlimited presets

Work, rest, rounds, sets, set breaks, get-ready and cool-down, or a custom list of named steps repeated N times.

🎨

Phase colours

Amber to get ready, red for work, green for rest, with seconds sized to the width of the screen.

🔊

Cues that land

3-2-1 beeps, spoken phase and step names through the phone's own text-to-speech, vibration, and music ducked rather than stopped.

🔒

Lock-screen controls

A countdown notification with Pause, Skip and Stop; recent presets in the app icon's shortcut menu.

📈

History

Time actually trained — a workout skipped to its end is not logged as done.

The numbers behind it

Taken from the PRD, the code and the emulator tests.

Screen-off test

80/80seconds

Wall clock vs timer after 80 seconds with the screen locked.

Languages

8locales

Spoken cues are translated too, as short gym words.

Built-in presets

3presets

Tabata, HIIT 40/20 and EMOM 10; any number more can be added free.

JVM tests

11tests

The plan builder, clock, timeline, cues and engine, without an emulator.

What leaves the device, and what doesn't

Workouts and history are never part of it.

  • No account, no sign-in, no backend. Presets and history live in the phone's own storage.
  • No sensors, no health data. No body-sensor, activity or location permission; a workout is a name and a duration.
  • Spoken cues stay on the phone. Phase and step names go to the phone's own text-to-speech engine, and can be switched off.
  • The connection is used for two things: loading ads and, if chosen, Google Play's purchase flow. The timer works in airplane mode.
  • Ads through Google AdMob, never mid-workout. A banner on lists only and one full-screen ad at most after a finished workout; one purchase removes them.
Read the full privacy policy →

Interval Timer is the eleventh app in my apps factory and the first with a foreground service: everything else in the factory either works in the foreground or schedules an alarm. The timer engine owns no Android types and the service owns no timing logic, so the next timer app — plank, meditation, boxing — can take both as they are.

The one bug worth telling came from the history screen. It logged where the timeline stood, and Skip moves the timeline, so skipping a Tabata to its last second logged four honest minutes. History now records the time actually trained, measured on the same monotonic clock.

The app’s privacy policy lives on its own page.