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.
-
📡 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
- Language: Java
- UI: XML
- Architecture: Activity-based
- Navigation: Bottom NavigationView + ViewPager
- System Services: BatteryManager, BroadcastReceiver, Intent
battery_tracker.mp4
This project serves as a great reference for:
- Working with Android System Broadcasts
- Using
BatteryManagereffectively - Implementing real-time UI updates based on system states
- Using intents and system actions
- Navigating between screens with BottomNavigation and ViewPager