Skip to content

ltraj/LowBatteryNotifier

Repository files navigation

🔋 Low Battery Notifier

A lightweight, ad-free Android battery alarm and analytics app designed to prevent unexpected phone shutdowns.

Built out of frustration with missing important family calls when my phone died overnight, this app combines a reliable emergency alarm with local usage insights.


✨ Features

🚨 Smart Battery Alarm

  • Volume Override: Forces full volume for the alarm even if your phone is set to low, silent, or mute modes.
  • Custom Thresholds: Set alerts anywhere between 1%–50%.
  • Intelligent Behavior: Loop/repeat logic until noticed, with automatic cutoff as soon as a charger is connected.
  • Customization: Choose your own custom ringtone.
  • Persistent Monitoring: Low-footprint ongoing notification ensures the system doesn't kill the background task.

📊 Battery Analytics

  • Shutdown Predictions: Calculates estimated time until shutdown with a confidence indicator based on a weighted drain rate.
  • Drain Tracking: Monitors hourly drain, overnight drain patterns, and active charging sessions.
  • Local History: View recent charging logs and trends without a single byte leaving your device.

🛡️ Performance & Privacy Focus

  • Zero Polling Loops: Event-driven architecture uses Android battery broadcasts to maximize efficiency.
  • 100% Offline: No internet permission, no cloud services, no trackers, and no user accounts required.
  • Local Storage: Data is stored strictly in a local SQLite database with automatic cleanup.

🏗 Architecture

Battery Broadcast Event ➔ Store Sample ➔ Calculate Insights (Only When App Opened)

By calculating insights on-demand rather than in the background, the app ensures it never becomes the very thing it fights against: a battery drainer.


📱 Screenshots

Main Screen

image

Analytics Screen

image

Settings Screen

image

Alarm Notification

image ---

🚀 Installation & Build

Download APK

Grab the latest release directly from the Releases section.

Build From Source

git clone https://github.com/ltraj/LowBatteryNotifier.git

Open the project in Android Studio and navigate to Build -> Build APK(s).


🛠 Tech Stack

  • Language: Kotlin
  • UI Framework: Jetpack Compose (Material 3)
  • Storage: SQLite
  • Core Android: Broadcast Receivers

🤝 Contributing & Support

Suggestions, bug reports, and pull requests are highly welcome. If you find this project saved your morning, consider giving it a ⭐ Star!


📄 License

MIT License

About

Lightweight Android battery alarm and analytics app with shutdown prediction and charging insights.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages