facebookarchive / network-connection-class

Listen to current network traffic in the app and categorize the quality of the network.
Other
3.19k stars 515 forks source link

On restarting activity unable to get results. Need to kill app and restart every time to get results. #45

Open sohailYasin opened 5 years ago

sohailYasin commented 5 years ago

i have used the same code as provided in sample. it works perfectly fine when i run activity for the first time. but if i go back and reopen activity i got no results. and mConnectionClassManager.getCurrentBandwidthQuality() gives me the last result .

manujjagga421 commented 5 years ago

did you find any solution to this?

sohailYasin commented 5 years ago

i think i found some work around. ping me at 12 or 1 pm and i will share code with you.

On Fri, Oct 4, 2019 at 3:02 PM manujjagga421 notifications@github.com wrote:

did you find any solution to this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/facebook/network-connection-class/issues/45?email_source=notifications&email_token=AENPXSBX4G2YWYC6TX4FAZLQM4ID3A5CNFSM4GS7DNCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEALFOKY#issuecomment-538335019, or mute the thread https://github.com/notifications/unsubscribe-auth/AENPXSDGEEVSO62SZZHN4XLQM4ID3ANCNFSM4GS7DNCA .