You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
It calculates the network quality by adding the byte diff between sampling to a moving average. Some traffic has to happen before you can get the quality.
long newBytes = TrafficStats.getTotalRxBytes();
long byteDiff = newBytes - sPreviousBytes;
So it's not accurate, but I plan on adding a feature to guess the bandwidth based on the type of connection. We know a user on a 2g connection will be POOR and a 3G connection will be MODERATE. We won't be able to tell if WIFI is good or bad, but it's better than nothing.
No description provided.
The text was updated successfully, but these errors were encountered: