Comments (1)
@sssvrock what does your network operation do? According to the README, "The library does this by listening to the existing internet traffic done by your app and notifying you when the user's connection quality changes." So if you're not downloading much data in between starting/stopping the sampling, it's going to always report a poor connection.
You can see the default values here:
https://github.com/facebook/network-connection-class/blob/master/connectionclass/src/main/java/com/facebook/network/connectionclass/ConnectionClassManager.java#L35-L37
If you're trying to do a generic measurement of network quality, you'll have to ramp up your download operations to the max during the sampling period.
from network-connection-class.
Related Issues (20)
- Connection class doesn't change even when offline HOT 2
- Bug: StartSampling updates mLastTimeReading while not make any read
- Hi can i get my internet strength as soon as i enter in app without sampling anything HOT 3
- Upload speed HOT 2
- startSampling stopSampling for every network request? HOT 3
- IndexOutOfBoundsException in ConnectionClassManager
- method "mapBandwidthQuality" doesn't receive any argument in double average
- Speed in Mbps HOT 5
- Listener still callbacks MODERATE, when wlan was closed and no sim card. Why? HOT 1
- ConnectionClassManager.getDownloadKBitsPerSecond() returns bits/second instead? HOT 1
- OutofMemoryException while sampling HOT 2
- Can i get jitter time from this libray
- Your connection class is: UNKNOWN all the time HOT 1
- how to get all the parameter speed (KB/s) and time (minutes.second)
- Not listening for network bandwidth when using with socket in a Service HOT 1
- Google Pixel Android 9 Issue - Current average bandwidth is -1.0 Kilobits/s and Quality UNKNOWN HOT 3
- Error reading from /proc/net/xt_qtaguid/stats. Please check if this file exists.
- On restarting activity unable to get results. Need to kill app and restart every time to get results. HOT 2
- [Question] Is this project still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from network-connection-class.