SShortSingh.
Back to feed

How one developer built a battery-friendly geofencing app to auto-mute Android phones

0
·1 views

A developer built an Android app called Muffle after repeatedly forgetting to silence his phone in class, finding existing solutions either privacy-invasive or battery-draining. Instead of polling GPS at intervals, he used Google Play Services' GeofencingClient, which lets the OS handle location boundary checks efficiently at the system level. He implemented a BroadcastReceiver and JobIntentService to manage audio profile changes reliably, even when the app was killed or the device was in Doze mode. A loitering delay was added to prevent the sound profile from toggling erratically near boundaries. A boot receiver was also built to re-register geofences after a device restart, ensuring the mute logic persists across power cycles.

Read the full story at DEV Community

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

Related stories

0
ProgrammingDEV Community ·

Developer Builds Filterable Product Grid on Day 136 of MERN Stack Journey

A software engineering learner has reached day 136 of their self-directed MERN Stack study, marking the milestone by building a core feature for their capstone project called Sprintix. The work focused on creating a product collection grid paired with a faceted filter sidebar at the /collection route. The filter system includes category checkboxes segmented by Men, Women, and Kids, as well as type filters for Top Wear, Bottom Wear, and Winter Wear. A sort dropdown offering options such as relevance and price order was also added at the top of the layout. The entire component was built using dynamic state arrays and object schemas to allow smooth integration with live API data in a future full-stack phase.

0
ProgrammingDEV Community ·

Developer Builds AI Tool That Tests Security Specs Before Code Is Written

A software engineer created GAUNTLEX, an adversarial co-generation engine designed to identify security flaws in technical specifications before any code is produced. The tool was inspired by observations during large-scale legacy modernization projects at banks and insurers, where thousands of specs were being generated faster than human review processes could handle. GAUNTLEX runs two simultaneous AI agents — a Builder that implements the spec and a Breaker that attacks it — while a third agent scores the results into an Adversarial Resilience Score. If the score falls below a configurable threshold, the merge is automatically blocked, similar to how a failing test suite works today. Each finding is mapped to industry compliance frameworks including NIST SSDF, OWASP SAMM, SOC 2, and ISO 27001, making results useful to both engineers and auditors.

0
ProgrammingDEV Community ·

MCP Series Part 5: How Resources and Parameterized URIs Feed Live Data to LLMs

A technical deep dive from DEV Community explains the distinction between MCP Resources and Tools in large language model architectures, where Resources serve as read-only data sources and Tools represent executable actions with potential side effects. Dynamic Resources return live, changing data on every read rather than a fixed snapshot, making them suitable for real-time information like sprint progress or issue counts. Parameterized URIs allow a single resource handler to serve multiple instances, such as per-project statistics, by parsing identifiers directly from the URI path. The host system decides when to inject Resources into context, enabling it to supply only the relevant data — for example, loading stats for the active project rather than all projects at once. The article also highlights the importance of marking dynamic Resources explicitly in their descriptions so the LLM knows to re-fetch them when fresh data is required.

0
ProgrammingDEV Community ·

Developer launches free, no-signup browser-based toolbox for text, image and dev tasks

A developer has launched Yanapex, a free online toolbox that consolidates common utilities for text, image, and developer tasks into a single website. The platform currently offers 26 tools, including a word counter with real-time statistics and reading time estimates. No account registration or payment is required, and users can access any tool instantly. All processing runs client-side, meaning no data or files are sent to external servers, making it suitable for handling sensitive content. The project was motivated by the developer's frustration with maintaining multiple scattered bookmarks for everyday quick-use tools.

How one developer built a battery-friendly geofencing app to auto-mute Android phones · ShortSingh