Don't know how netcounter does it, but have a look at "/proc/self/net/
devs" for the basic interface counters. Here is some hacky code which
makes use of these:
http://code.google.com/p/android-labs/source/browse/trunk/NetMeter/src/com/google/android/netmeter/StatsProcessor.java
- sorry, I am new to Java so there are probably cleaner and more
efficient ways of parsing this.

Bernhard

On Jan 13, 8:02 am, "trust_chen chen" <[email protected]> wrote:
> hi all:
>       i want to implement an application like netcounter,but I can not find
> the APIS:
>       how to get the infomation the net node such as ppp0/wifi/usb0?
>       how to know the current net node which network is using and the bytes
> of the downloa data?
>
> thanks!
--~--~---------~--~----~------------~-------~--~----~
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