Top "Battery" questions

A battery is a portable electrical power source which is often used in mobile devices.

Is my Android App Draining Battery?

I'm developing a game for Android. It uses a surface view and uses the sort of standard 2D drawing APIs …

java android optimization battery
I can't receive broadcast on battery state change?

I am having the exact same problem as this post: Battery broadcast receiver doesn't work. But it seems no one …

android broadcastreceiver battery
How does Android determine if an app has "High Battery Use" under "Recent Location Requests"?

As of Kitkat (4.4) Android reports that my app is "High battery use". I use Network Location as well GPS. If …

android gps location battery android-4.4-kitkat
What is the best way to get battery level on Android without permanently monitoring it?

I just need the battery level percentage at one point to print it on the screen, but I don't want …

android battery
Battery status API in macOS?

How can I read the status of the battery on my MacBookPro from my own application? Googling has so far …

macos battery
How to get battery percentage with python?

How to get battery percentage with python? Maybe some win32api functions may help.

python python-3.x battery
How Do I get Battery Charge Cycles from a connected iOS device?

I'm using MobileDevice.framework in an OS X application and I've been able to get how charged the battery of …

ios iphone macos battery mobiledevice.framework
PubNub long polling vs sockets - mobile battery life

I recently began using PubNub in my iOS app, and am very happy with it. However, I have been looking …

ios websocket long-polling battery pubnub
Get battery level JavaScript

/!\ THE USE OF window.navigator.battery IS STRONGLY DISCOURAGED AND THIS ISSUE IS NOW NOT WORTH CHECKING THANK YOU /!\ I …

javascript battery batterylevel
Android - how do sensor readings affect battery life

i have added a feature in my app that uses the proximity and accelerometer sensors (the second is to detect …

android sensors battery