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

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).


Den 15 mar 2010 15.55, "Chris Stratton" <> 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.


> > > > 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. How I save xml file with Elemnt Node type

I am creating an xml file  by this code
XmlSerializer serializer = Xml.newSerializer( );
                try {
                        // we set the FileOutputStream as output for the 
serializer, using
                        // UTF-8 encoding
                        serializer.setOutput(fileos, "UTF-8");
                        // Write <?xml declaration with encoding (if encoding 
not null) and
                        // standalone flag (if standalone not null)
                        serializer.startDocument(null, Boolean.valueOf(true));
                        // set indentation option
                        // start a tag called "root"
                        serializer.startTag(null, "root");
When I read the file all the nodes from the type TEXT NODE
How I save it as ELEMNT NODE


2. Help needed with MediaRecorder - first time dev

I am working on a very simple recorder app:

I want to record a person's voice for a few seconds.  Then I want to
be able to play it back.  Then I want to FTP it to an FTP server.
Should be relatively simple - but I can't get the first portion of
this done.  As soon as I set the Audio Source I get a crash in both
the simulator (expected since MediaRecorder is not supported) and on
my phone (not expected unless I am doing something stupidly wrong).  I
feel like I am importing the world here trying to find something that
works - and I have gone through like 4 sets of example code (merging
most of it).

Here is what I think is the most simple version of my code that
compiles and runs it just crashes on me when I click the button::::

package com.example.helloandroid;

import java.lang.Object;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.EditText;
import android.widget.Toast;
import android.os.Environment;
import android.content.*;
import android.provider.*;

public class HelloAndroid extends Activity {

        MediaRecorder recorder = new MediaRecorder();
        String path = "/mnt/sdcard/filename.3gp";

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

        final Button button = (Button) findViewById(;
        button.setOnClickListener(new View.OnClickListener() {

                        public void onClick(View v) {

                                String state = 
(!state.equals(android.os.Environment.MEDIA_MOUNTED)) {
                                        new IOException("Path to the file could 
not be created.");



                                Toast.makeText(HelloAndroid.this, path,



Any help here would be greatly appreciated!


3. openGL problem

4. EditText not able to regain focus.

5. Help needed on streaming aac+ stream on Android

6. gps problem

7. how to select multiple images through intent and get their Uri in my activity to perform some task on thease images