battery

Replacing the battery indicator (Android).

There's an open source battery indicator that I greatly prefer to the default one. I was wanting to modify it to replace the default battery indicator. Is this even possible without building a whole custom ROM? ...

Is OpenGL on Android a battery killer?

Hey, I'm currently implementing a software keyboard ( using some sophisticated prediction ), and drawing it using canvas is insufficient in terms of perfomance. I'm getting frame drawing times well above 100ms, which is clearly unacceptable. The keyboard itself consists of about 33 keys, each of them drawn using drawRoundRect and a sim...

Battery Percentage - Getting An Accurate Test On Any iPhone

Hello all, I am looking for a way to run an accurate test on an iPhone and find how long it takes for battery percentage to drop. While considering this I thought Would the temperature of the battery make a difference to my result i.e If I took my iPhone outside and ran the test would it be consistent with the test I ran indoors? Does...

Incorrect Battery Reading after using the GetSystemPowerStatus API

Hi, I was writing an application to read the laptop battery charge using the GetSystemPowerStatus API. This API was called every second (from a timer control) and the value of bytBatteryLifePercent in the returned data-structure was passed to a progress-bar in order to display the battery charge. The application was written in VB 2005 ...

Finding Capacity Remaining In An iPhone Battery

Does anyone know how (if possible) I can find out how much capacity (mAh) is remaining in an iPhone battery at any given time? Something like the program above? Is there a value stored in a plist somewhere?? ...

How can I temporary disable "low battery" UIAlertView on iPhone?

I'm developing something like a stopwatch, so I have to turn off that below 20% battery alert view somehow during a time measuring session (I will inform the user about battery percentage elsehow). I just couldn't google for any answer. ...

Finding curCapacity and maxCapacity Value, iPhone

Hello all, A method which can be used for finding the battery percentage of your device is found here: http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/comment-page-1/#comment-6085 I have tried it and it works great. If you have a closer look at the code there are two values curCapacity and maxCapacity. I ...

Return Capacity Values, Not Percent (iPhone)

Using this method here how would I return the curCapacity and maxCapacity mAh values rather than a percent? http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/comment-page-1/#comment-6089 No matter what I try my curCapacity and maxCapacity values match my battery percentage! Edit // My 1st attempt #include ...

How do I maximize power consumption on a linux laptop from software?

I would like to maximize power consumption on a linux laptop (ubuntu with openbox) to discharge the battery as fast as possible. I would like it to be done purely from software without user intervention. Which strategies would be useful to do this? The ones I can think of are: Switch off power-save functionality (tips on how to do this...

How can an application display an object on the Windows taskbar?

There are several applications around that display objects on the Windows taskbar but do no implement the IDeskBand interface. For example, the Lenovo batter meter and Notebook BatteryInfo. For example: In the picture above, the object on the taskbar is put there by the application and disappears when the application closes. This i...

iphone battery charging indicator

Context: iPhone is connected to the PC via cable and power indicated 100% ( the icon of the batter contains a small power plug also) Question: In this stage the phone is powered directly from USB or is it using the battery ? Thanks ...

How to get light sensor value and battery level anytime for android?

I am writing a program and I am able to get the light sensor value and current battery level, but only the light value changes and when the battery level changes. Is there a way to get these two values anytime? Like when a user runs my program, I would like to grab the current values right away instead of having to wait for them to cha...

How to obtain Battery Stats in Android at runtime?

I want to display Battery level stats in my app. How can we obtain such information like Battery Power, Battery Voltage, etc.? ...

ANDROID: how does addProximityAlert() work exactly?

I'm looking for information about how "addProximityAlert()" exactly works At what intervals does it check? What happens if we use more than one addProximmityAlert(, do they work independently(do they check individually)? ...

What settings can my app control to conserve battery life?

I was wondering what settings an application can control to improve battery life in the Android environment. On most laptops, you can control screen brightness, wireless adapter settings, etc, as a means to conserve battery life. Are there any such controls in Android? Thanks! ...

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 of Voltage and Current, and then able to collect statistics as reported in this PDF. I am able to get the value of Battery voltage through registering for an intent receiver to receive the Broadcast for ACTION_BATTERY_CHANGED....

How to produce an iphone app which calculates the battery status?

How to produce an iphone app which calculates the battery status? Is there a particular API that i need to use? Has anyone got a link to any online tutorials? ...

Android registerListener and battery life

In reviewing this post http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it, the highest rated answer says you should unregister and reregister the listener for the accelerometer onStop and onResume to conserve battery life. My question is how do we know which listeners we need to stop/resume to minimize our application...

I'm getting reports that my app is draining the battery, but only on HTC Incredible.

Has anyone else noticed behavior specific to the HTC Incredible that might result in an app keeping the device awake and busy? I've received reports that my app is responsible for keeping the device awake and draining the battery, but only from HTC Incredible users. My app responds to a number of Intents that might be related. It has a...

How do you manage battery health of your development devices when is always plugged in?

I know this question is not programming related, so for this I made community wiki. Developers are the best guys to answer the question. I am addressed to those that do development on devices that runs on batteries, like phones, gadgets etc. Probably you are constantly develop for them, and therefor they are always plugged in and charge...