Top "Batterymanager" questions

The BatteryManager class contains strings and constants used for values in the ACTION_BATTERY_CHANGED Intent.

Check if device is plugged in

My app has a broadcast receiver to listen for changes to ACTION_POWER_CONNECTED, and in turn flag the screen …

android batterymanager
How to test battery charging speed?

How can I detect battery charging speed in android device? I can detect battery status using below code. but not …

android usb battery sysfs batterymanager
Total Battery Capacity in mAh of device Programmatically

I have tried powerprofile of Android....I have tried this code...but it gives me 1000 answer every time in all …

java android battery batterymanager
Android broadcastreceiver not triggering when app is not running

Following this guide https://developer.android.com/training/monitoring-device-state/battery-monitoring.html I made a receiver that should log battery info …

android broadcastreceiver batterymanager