Skip to content

A comprehensive Battery Manager app that provides detailed battery information and real-time status updates. It features an intuitive UI with ViewPager for seamless navigation across different sections.

Notifications You must be signed in to change notification settings

Shoaibkhalid65/BatteryManagerApp

Repository files navigation

🔋 Battery Manager App (Java + XML)

This Android project demonstrates a detailed and practical implementation of BroadcastReceiver, focusing on the BatteryManager API. The app is built using Java and XML, with a clean UI structured around Bottom Navigation and ViewPager for smooth screen transitions.

🚀 Key Features

  • 📡 Real-Time Battery Monitoring via BroadcastReceiver

  • 🔋 Displays:

    • Battery Voltage
    • Battery Current Now
    • Battery Temperature
    • Battery Health
    • Battery Status (Charging/Not Charging)
    • Charger Plugged Status (AC, USB, Wireless)
    • Charge Time Remaining
    • Battery Scale
    • Current Average
    • Energy Counter
  • 📱 ViewPager for seamless tab navigation

  • 🧭 Bottom Navigation Bar for structured UI

  • Implicit Intent button to launch Power Usage Summary

🛠 Tech Stack

  • Language: Java
  • UI: XML
  • Architecture: Activity-based
  • Navigation: Bottom NavigationView + ViewPager
  • System Services: BatteryManager, BroadcastReceiver, Intent

📷 Demo Video

battery_tracker.mp4

💡 Learning Outcome

This project serves as a great reference for:

  • Working with Android System Broadcasts
  • Using BatteryManager effectively
  • Implementing real-time UI updates based on system states
  • Using intents and system actions
  • Navigating between screens with BottomNavigation and ViewPager

About

A comprehensive Battery Manager app that provides detailed battery information and real-time status updates. It features an intuitive UI with ViewPager for seamless navigation across different sections.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages