Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.53 KB

File metadata and controls

52 lines (34 loc) · 1.53 KB

🔋 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