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

Hi can i get my internet strength as soon as i enter in app without sampling anything #26

Open
asuxus opened this issue Jul 25, 2016 · 3 comments

Comments

@asuxus
Copy link

asuxus commented Jul 25, 2016

No description provided.

@sreejithr
Copy link

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;

@SeyelentEco
Copy link
Contributor

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.

Look out for a pull request soon.

@p-fischer
Copy link

@SeyelentEco Are you still planning to add this feature?

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

4 participants