java - Calculate Android sensor power consumption -


getpower() returns power in ma used sensor while in use:

now, need calculate how battery used registration of sensor.

does value returned getpower() indicate mah (ma per hour) or else? if yes, there way battery mah in order calculate % of battery used sensor?

something quite related has been discussed in google groups not long ago. can find full thread here reference.

a small excerpt last reply in thread, should answer question more or less:

(...) battery capacity given in terms of mah. (...) matters how long battery can supply given current @ rated voltage. 3800mah means can supply 3800ma 1 hour. knowing makes sense api providing current drain metric of power consumption. can calculate how effect have on battery life function of time.


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -