Building Doseleaf: An Offline-First Medicine Reminder App with Kotlin and Jetpack Compose
Description and use
Doseleaf is an offline‑first Android app that lets users manage medicines, schedule reminders, and keep dose history locally without a backend.
Problem
Managing multiple medicines, schedules, and dose history is complex and often requires a backend, which can be unreliable or unavailable.
Outcome
Doseleaf delivers a robust offline‑first medication reminder system with local persistence, reliable scheduling, and data protection features, while highlighting engineering lessons around persistence, background execution, and data integrity.
Workflow
- Create or edit a medicine record
- Define one or more daily reminder times
- Schedule reminders via AlarmManager
- Receive notification and record dose action (Taken/Skip)
- View dose history and export reports
- Backup or restore data via JSON, CSV, or PDF
Evidence
Medication management can become complicated when someone needs to track multiple medicines, follow different schedules, and maintain a reliable history of doses.
Doseleaf is a native Android application built with Kotlin and Jetpack Compose.
The application uses Android's AlarmManager to request scheduled reminder events.
Doseleaf includes fallback scheduling behaviour, but reminder delivery still requires validation across supported Android versions and physical devices.
The JSON backup includes profiles, medicines, schedules, dose logs, and inventory records.
- Record date: 2026-10-24T20:26:35.761Z