Developer builds Android app to auto-silence phone using geofencing and alarms
A developer created 'Muffle', a privacy-focused Android app that automatically manages sound profiles using GPS geofencing, time-based alarms, and calendar events. The project was motivated by the unreliability of manual sound toggling in context-sensitive locations like clinics, lecture halls, and places of worship. To ensure reliability, the app uses a persistent ForegroundService alongside AlarmManager's setExactAndAllowWhileIdle, which allows triggers to fire even when the device is in Android's battery-saving Doze mode. Geofence monitoring is offloaded to Android's native GeofencingClient API rather than polling location data directly, minimizing battery consumption. The architecture prioritizes local processing and survival against Android's aggressive background process restrictions without requiring internet connectivity.
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