Developer builds Muffle app to auto-silence Android phones after prayer embarrassment
A developer created Muffle, an Android app that automatically manages a phone's sound profile based on location, time, or prayer schedules, after witnessing an embarrassing ringtone disruption during Friday prayers. The app was designed as a lightweight, privacy-respecting utility that works without cloud accounts or internet connectivity. Building it required navigating Android 14's aggressive background process management, which actively limits or kills background services. The developer combined WorkManager for reliable scheduled tasks and a Foreground Service for real-time sound adjustments, while using setExactAndAllowWhileIdle alarms to ensure triggers fired even in Doze mode. A priority queue system was also implemented to handle overlapping rules and determine which scheduled routine should control the device's sound state at any given time.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in