English · Türkçe
UV tracking and vitamin D estimates for Android. Free software, licensed under the GNU GPL v3 or later.
This is a Kotlin + Jetpack Compose port of Sun Day, a public-domain iOS app. The vitamin D model is the original app's; see its METHODOLOGY.md.
Sun Day needs Android 8.0 or newer. It is not on Google Play.
- Open the Releases page on your phone.
- Under Assets, download the
.apkfile. - Open it. If Android asks, allow your browser or file manager to install unknown apps.
You have to repeat this by hand for each new version.
Obtainium installs apps straight from their GitHub releases and notifies you of updates.
- Install Obtainium from its releases or from F-Droid.
- Tap Add app, paste
https://github.com/nulldistrict/sunday-androidand tap Add. On a phone with Obtainium installed you can also open this link. - Tap Install. Obtainium checks for new releases in the background.
- Location gives the UV for where you are. "While using the app" or "Only this time" is enough; Sun Day never asks for background location. Without it the app warns you and shows the last known location, if any.
- Notifications (optional) are for the burn warning and sunrise/noon/sunset.
A build you made yourself, or a debug build, is signed with a different key. Uninstall it before installing a release (this deletes the app's data).
- Current UV index for your location, interpolated from the hourly forecast
- Vitamin D rate and running total, based on UV, time of day, clothing, sunscreen, skin type, age and the last 7 days of exposure
- Burn limit, with a notification at 80 % of your burn threshold (also while the app is closed)
- Sunrise, solar noon and sunset notifications
- Log a past exposure from today using cached hourly UV
- Moon phase at night
- Offline mode using cached forecasts
- Home-screen widget (small and medium) with a Begin/End button
- Optional export to Health Connect
- English and Turkish
- No Google Play Services. Location comes from the platform
LocationManager, so the app runs on LineageOS, GrapheneOS, /e/OS and similar systems. - No proprietary or tracking libraries. Dependencies are AndroidX, Jetpack Compose, Glance, kotlinx.coroutines, kotlinx.serialization (all Apache 2.0) and the Health Connect client (Apache 2.0).
- No accounts, ads, analytics or crash reporters.
- One network request: the UV forecast from Open-Meteo, with coordinates rounded to ~10 m. The moon phase, which the iOS app fetched over plain HTTP, is computed on the device.
- Your data stays on the device. History and settings live in the app's private storage. Health Connect export is off by default and write-only.
UV data: Weather data by Open-Meteo.com, licensed CC BY 4.0.
- Settings and history are stored locally; Health Connect (Apple Health's counterpart) is an optional export, not the source of truth. "Today" counts what you saved in Sun Day.
- Age is entered in the app (Health Connect has no date of birth). Skin type is chosen in the app (Health Connect has no skin type).
- While the app is in the background, a running session is integrated over the hourly UV forecast, minute by minute, instead of at one UV value.
- If you set an earlier end time when finishing a session, the amount is scaled to that duration.
- The manual-entry fallback solar-position estimate uses UTC correctly.
Requirements: JDK 17 or newer and the Android SDK (compile SDK 37).
git clone https://github.com/nulldistrict/sunday-android.git
cd sunday-android
./gradlew assembleDebugThe APK is written to app/build/outputs/apk/debug/. Run the unit tests with:
./gradlew testDebugUnitTest./gradlew assembleRelease produces an unsigned, minified APK. To sign it, copy
keystore.properties.example to keystore.properties (ignored by git) and fill in your
keystore details.
app/src/main/java/com/github/nulldistrict/sunday/
├── core/ Vitamin D model, skin/clothing/sunscreen factors, moon and sun math (pure Kotlin)
├── data/ Settings, local JSON store, Open-Meteo client
├── platform/ Location, network, notifications, Health Connect
├── ui/ Compose screens and sheets
├── widget/ Glance home-screen widget
└── SunDayController.kt App state and logic
Copyright (C) 2026 Sun Day for Android contributors
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See LICENSE.
The original iOS app is in the public domain; this port is not affiliated with it.


