seems not working. How to get around ?
Erel,
Thanks for your response.
NetworkMonitor returns -1 and the log is about 2 missing files:
"/sys/class/net/rmnet0/statistics/rx_bytes" and
"/sys/class/net/ppp0/statistics/rx_bytes".
Actually, both files are not in my Android 2.2 phone nor in the AVD.
If it is just a matter of reading an Android log file, B4A is brave enough. No need for a java lib.
Android counts up traffic into /sys/class/net/[device]/ (for network device) and in /proc/uid_stat/[uid]/tcp_rcv and tcp_snd (for the app).
The later is working fine with Android 2.2.
Question: Is the path '/proc/uid_stat/[uid]/...' kept over Android versions > 2.2 ?
Regards.