There isn't an API to retrieve this.  The computation done for the battery
stats UI is a complicated approximation (taking into account CPU stepping
etc to some degree) that is very much an approximation.  It is not accurate
enough that I would want it available through an API.

On Tue, Aug 21, 2012 at 8:53 PM, thejaswi s <[email protected]> wrote:

>  A bove link suggested by  Asheesh arya  saying about present technology ,
> plugged, scale, health, voltage, level, temperature, status . but not
> about how much battery is consuming to process cpu cycles. So please tel me
> how cpu usage related with battery usage using a equation.
>
>
> On Tue, Aug 21, 2012 at 5:09 PM, Asheesh Arya <[email protected]>wrote:
>
>> just go through this link might be you get some idea
>> http://www.krvarma.com/2010/07/getting-battery-information-in-android/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to