Emergency Wake-Up Alarm separates alarm scheduling, live camera verification, and local persistence so everything works offline without accounts or cloud dependencies.
Step 1 — Schedule & Configure
Create one-time or repeating weekday alarms and choose your sound profile and challenge mode (Mixed, Dance-Only, Exercise-Only, or inherit default Settings). Scheduled trigger timestamps are calculated cleanly in your current local time zone.
Step 2 — Lock-Screen Ringing & Challenge Display
When the alarm fires, the foreground service starts pre-rendered audio playback on the alarm stream and opens the lock-screen alarm screen showing today's assigned challenge alongside a live animated stick-figure demonstration.
Step 3 — On-Device Movement Verification
- CameraX Capture: Only starts while the challenge or practice view is on screen and camera permission is granted.
- MediaPipe Pose Landmarker Lite: Analyzes each frame in memory to estimate 33 body landmarks (shoulders, elbows, wrists, hips, knees, ankles).
- Scale-Invariant Detectors: Custom Kotlin detectors check specific constraints and repeating oscillations or circular sweeps normalized to shoulder width and torso length — so distance from the camera and front-camera mirroring do not skew results.
- Strict Accumulation: Time only accrues between consecutive valid tracking frames (capped at 250 ms per gap). If you step out of frame or stop moving, progress pauses immediately rather than advancing falsely.
AlarmManager.setAlarmClock APIs and does not promise guaranteed alarm delivery across every phone if the user force-stops the app, powers off the device, revokes permissions, or if aggressive OEM battery savers restrict background alarms. Review your phone's battery settings using the in-app permission warnings.
Step 4 — Completion, Logs, and Practice Mode
Once you reach 10 or 15 seconds of verified movement, audio stops immediately, a celebratory Victory screen displays your updated streak, and the outcome is saved locally. You can also try any of the 30 challenges safely at any time via Practice Mode without affecting streaks.