Комментарии:
Great video! Thanks
ОтветитьCan you please provide the same in JAVA language
ОтветитьYou have saved my Sunday, I had sat painfully the whole day trying to hack network updates. Your Video showed up and I have hacked it.
ОтветитьHey Mitch, can you tell me what's the point of checking the capabilities inside onAvailable()? When we register a network callback, we pass a network request with some conditions, in our case with the "NET_CAPABILITY_INTERNET" capability. The network callback will be executed if only our network request was satisfied. E.g. if you will specify only TRANSPORT_WIFI in your network request, switching mobile data on/off will not trigger a network callback.
ОтветитьI have had a lot of flakiness on my callbacks actually getting invoked from the ConnectivityManager, has anyone else had issues?
ОтветитьI read 2 articles and still have a lot of questions, but this video explains everything perfectly. Thanks!
Ответитьi need this in java..??
ОтветитьI'm really sorry at the point but yo uare just keeping check of whether your network is connected or not. It doesn't sure that you can route on internet or could request a ping successfully.
ОтветитьPlease make same video with java
Ответитьreally helpful (saludos de México) :D
ОтветитьTHANKS YOU ARE THE BEST!
ОтветитьVery nice I experiment with something, and I am not happy.. thank you
Ответить🔥🔥🔥🔥🔥🔥🔥🔥
ОтветитьWell done!
ОтветитьThank you. BTW there's a bug. Imagine my wifi is on and cellular is off. I open the app, I turn on the cellular network and after that, I turn off the wifi. It disconnects and reconnects again.
One of the way to fix this is to post the livedata after 500ms delay
Please I am having this error: "unresolved reference: DoesNetworkHaveInternet".
Located in the ConnectionLiveData class.
Please what should I do to resolve it.
Thank you.
Well done Mitch and Mason. You're exceptional
ОтветитьThis way is really good! Great job, thank you so much!
Ответитьyo mitch can you make it java? I'm not familiar in kotlin.
ОтветитьThis is GOLD
Ответить