Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

The library doesn't listen to the existing internet traffic done by a specific app #20

Open
xardox69 opened this issue Mar 17, 2016 · 1 comment

Comments

@xardox69
Copy link

Hi, Checking out 1.0.1 release branch.
In DeviceBandwidthSampler.java line 92
long newBytes = TrafficStats.getTotalRxBytes();

This method returns number of bytes received since device boot. Counts packets across all network interfaces, and always increases monotonically since device boot.

It is not app specific as there might be another background task or sync service running/started by another app at the same time.

@SimonMarquis
Copy link

@xardox69 I think this is done on purpose. Using getUidRxBytes() will indeed return the value for a specific uid, but what you really want is to monitor the "system wide" network quality.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants