Monitoring a Network Connection in Realtime with LiveData

Monitoring a Network Connection in Realtime with LiveData

CodingWithMitch

3 года назад

28,325 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Tilemachos
Tilemachos - 22.10.2022 17:21

Great video! Thanks

Ответить
Vicky Thakur
Vicky Thakur - 18.09.2022 17:30

Can you please provide the same in JAVA language

Ответить
Tonnie
Tonnie - 24.07.2022 15:57

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.

Ответить
Hayk Mkrtchyan
Hayk Mkrtchyan - 14.06.2022 14:54

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.

Ответить
Remmie Vail
Remmie Vail - 14.06.2022 00:38

I have had a lot of flakiness on my callbacks actually getting invoked from the ConnectivityManager, has anyone else had issues?

Ответить
Vitali_Ac
Vitali_Ac - 19.02.2022 13:28

I read 2 articles and still have a lot of questions, but this video explains everything perfectly. Thanks!

Ответить
Rudresh S P
Rudresh S P - 15.02.2022 08:59

i need this in java..??

Ответить
Syed Muhammad Raza
Syed Muhammad Raza - 03.12.2021 00:29

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.

Ответить
Satish Sharma
Satish Sharma - 29.11.2021 19:42

Please make same video with java

Ответить
Sxrdnx Diaz
Sxrdnx Diaz - 14.11.2021 13:52

really helpful (saludos de México) :D

Ответить
julian oliveros
julian oliveros - 14.11.2021 07:06

THANKS YOU ARE THE BEST!

Ответить
Nenad Strbic
Nenad Strbic - 02.11.2021 10:02

Very nice I experiment with something, and I am not happy.. thank you

Ответить
Abú-Bakr Pereira Kebé
Abú-Bakr Pereira Kebé - 16.10.2021 16:12

🔥🔥🔥🔥🔥🔥🔥🔥

Ответить
Ali Kabiri
Ali Kabiri - 15.09.2021 22:09

Well done!

Ответить
Hayk Mkrtchyan
Hayk Mkrtchyan - 08.09.2021 15:14

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

Ответить
osehiase ehilen
osehiase ehilen - 24.08.2021 17:49

Please I am having this error: "unresolved reference: DoesNetworkHaveInternet".
Located in the ConnectionLiveData class.
Please what should I do to resolve it.
Thank you.

Ответить
Brian Ssendagire
Brian Ssendagire - 15.08.2021 13:40

Well done Mitch and Mason. You're exceptional

Ответить
Dmitry Pugachev
Dmitry Pugachev - 11.08.2021 00:03

This way is really good! Great job, thank you so much!

Ответить
Josephjet Abela
Josephjet Abela - 02.08.2021 11:08

yo mitch can you make it java? I'm not familiar in kotlin.

Ответить
Mahek Thaker
Mahek Thaker - 13.07.2021 13:52

This is GOLD

Ответить