Open Dgotlieb opened 8 years ago
@Dgotlieb You probably haven't sampled any data. Try putting DeviceBandwidthSampler.getInstance().startSampling()
and DeviceBandwidthSampler.getInstance().stopSampling()
between some bandwidth consuming section.
@sreejithr Is it mandatory to implement ConnectionClassStateChangeListener and have this initialization ConnectionClassManager.getInstance().register(this); before starting and stopping sampling?
Tried DeviceBandwidthSampler.getInstance().startSampling() still not working.. Thanks you
@SeyelentEco I see that you've been working the most on this lib. More info? :)
@TOMKHAN Has any traffic happened between your app start and when you check ConnectionClassManager.getInstance().getCurrentBandwidthQuality()
?
@sreejithr Yep. I'm starting sampling, then making network request and then stopping it. Still have no idea if "ConnectionClassManager.getInstance().register(this);" call is needed.
@Dgotlieb Did you solve it?
I am getting the same problem. If I increase the size of data to be downloaded between the start sampling and stop sampling calls, everything works fine. But if the data being downloaded is small, I always get UNKNOWN network. Has anyone found a workaround for this issue? @Dgotlieb @sreejithr @TOMKHAN @zpao @WxSmile
I tried doing the following:
And keep getting Unknown.