Ang.: Getting the battery current and voltage values for the Android Phone

by Daniel Petersson » Tue, 16 Mar 2010 20:33:22 GMT


Sponsored Links
 Hi,

449 mA is the max current for USB charging connected to a PC. If you read
the value when charging with a wall plug you will get a higher value
(probably around 700 mA but it is depending on the charger and the PMIC).

/D

Den 15 mar 2010 15.55, "Chris Stratton" <cs07...@gmail.com> skrev:

It might be a current estimate, but since it was reported to be
nonzero only with external power it sounds more like charge current
than drain.  Would be interesting if it turns out different with the
wall charger vs. usb.

Android being open source Chintan should be able to track down the
source of the number by perusing the sources.

Its probably possible to make an instrumented dummy battery for
research purposes, though it would requure figuring out the interface.




<android-kernel%252bunsubscr...@googlegroups.com<android-kernel%25252bunsubscr...@googlegroups.com>

> > > > website:



Ang.: Getting the battery current and voltage values for the Android Phone

by Chintan » Thu, 18 Mar 2010 04:56:06 GMT


 Ok, I am also able to read 449 mA for charging via USB.
Just wondering how is the phone able to measure the charging current
and not able to measure the discharge current.

For now I am planning to connect an external resistor and measure the
discharge current. I think that's the way to only way to get the
current values.

Thanks for your inputs.

On Mar 16, 4:13pm, Daniel Petersson



> > > > > website:


Sponsored Links


Other Threads

1. Saving a Serialized Object

Hello,

I've been asked to save a Serialized Object to the sqllite database so
it can be loaded next time the application launches. AFAIK I will need
to save it as a blob in the database but I've only used Strings and
int before :/

Could anyone give me a pointer on the best way to save the object. (my
research showed that serialization is slow but some people cannot be
convinced  and are still wanting it done :/  )

--~--~---------~--~----~------------~-------~--~----~

2. Setting Custom layout for ListView

ListActivity has a default layout and when i create a new custom
layout like below, it gives an error. "The application stopped
unexpectedly".

<?xml version="1.0" encoding="UTF-8"?>
 <LinearLayout xmlns:android=" http://www.***.com/ 
android"
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">

   <ListView id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#00FF00"
        android:layout_weight="1"
        android:drawSelectorOnTop="false"/>

   <TextView id="@android:id/empty"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#FF0000"
        android:text="No data"/>
 </LinearLayout>

it goes out of de{*filter*} and gives error when it comes to the line
setContentView(R.layout.custom_layout). When i comment this line it
displays a List.

How to create a custom ListView?

Any help will be appreciated. Thanks!!!

--~--~---------~--~----~------------~-------~--~----~

3. Install problem

4. New Animation Interpolators

5. Does anyone know how to use LocationManager to show your location on Google Map?

6. Developing a 2D game on Android

7. Article comparing smart phone OSes including Android