Top "Battery" questions

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

Get battery level and state in Android

How can I get battery level and state (plugged in, discharging, charging, etc)? I researched the developer docs and I …

java android battery
Getting the battery current values for the Android Phone

I am trying to collect power usage statistics for the Android G1 Phone. I am interested in knowing the values …

android battery
Android - Drain battery quickly on purpose

I am nearly finished with my app and last functionality to be made is to call specific action when battery …

android battery
Get battery level before broadcast receiver responds for Intent.ACTION_BATTERY_CHANGED

I have a broadcast receiver in my program to get react to the battery level like so: private BroadcastReceiver mBatInfoReceiver = …

android broadcastreceiver battery
How to stop the phone from charging via USB programmatically

I've tried to do as much research as possible but can't find an answer to this fairly simple question (want …

android battery setvalue
How to get real time battery level on iOS with a 1% granularity

I'm using this function to get current battery level of device: [[UIDevice currentDevice] setBatteryMonitoringEnabled:YES]; UIDevice *myDevice = [UIDevice currentDevice]; [myDevice …

iphone cocoa-touch battery batterylevel
How to get the battery level after connect to the BLE device?

I am developing an application where I have to connect to Bluetooth device on Android 4.3. And I want to get …

android bluetooth-lowenergy battery android-4.3-jelly-bean batterylevel
How can I programmatically stop a notebook battery from charging

There is some easily available information on finding the status of a battery, or weather it's charging or not. (GetSystemPowerStatus …

windows battery power-management
Socket connections and Polling. Which is a better solution in terms of battery life?

So... I'm making an application for Android. The application needs to send and receive realtime chat data (needs to be …

android sockets tcp polling battery
Get Battery Level with BroadcastReceiver in Android Service

I have a code, that I need get the Battery Level of my Android device, but I have a big …

android service battery batterylevel