I need to know the power dissipated at stant t from my android device!
Power (P) = Voltage(V) * Current (I)
I am able to get the value of Battery voltage through registering for an intent receiver to receive the Broadcast for ACTION_BATTERY_CHANGED. But the problem is that Android does not expose the value of current through this SDK interface.
Any suggestion / pointers for getting battery current value? Also please correct me if开发者_C百科 I am wrong.
Deborah
Its not supported by the SDK but apparently it can be done by reading some values on the I2C bus.  Here is a link to the source of CurrentWidget which has found a method to read the current.  I'm seems the method of reading the current is different for each device.
http://code.google.com/p/currentwidget/source/browse/trunk/CurrentWidgetLibrary/src/com/manor/currentwidget/library/CurrentReaderFactory.java
good luck!
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论