I need to know about Wi-Fi and 3G Internet traffic. I found this traffic data is saved to /statistics/rx_bytes, /statistics/tx_bytes, /sys/class/net/ paths.
Question: If I get data from these paths, what does this data mean? When did this data start being gathered: from Wi-Fi activation or from phone switch-on?
And when does the system clear or refresh this Wi-Fi traffic data? (My app needs to save daily traffic)
I need to know about Wi-Fi and 3G Internet traffic. I found this traffic
Share
Do not use these, as they may not exist on all devices. Use
TrafficStats, please.Please read the documentation for
TrafficStats.That is undocumented and therefore may vary.
That too is undocumented and therefore may vary.