Friday, September 9, 2011

[android-developers] TrafficStats.getMobileRxBytes() and TrafficStats.getMobileTxBytes() reset very frequently on 3.0.1 Honeycomb

Hi

While trying the traffic stats API, TrafficStats.getMobileRxBytes()
and TrafficStats.getMobileTxBytes() on Android 3.0.1 (on my Galaxy
Tab 10.1), i noticed that the stats reported by the APIs reset very
frequently. This makes it impossible to monitor Cellular data sent and
received by the phone.

The Traffic Stat APIs work perfectly on my 2.2 and 2.3 phones where
the values reported by the APIs resets only after a phone reboot. The
behavior seems to have changed in 3.0.1 atleast.

Can someone please clarify, if this is a known issue or is there any
new API that supersedes the APIs getMobileRxBytes() and
getMobileTxBytes() .

If this is not a known issue, then I can try logging a bug with
Google.

Thanks
Nav

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment