Android Check Internet Connection | Monitor Connectivity Continuously | Android Studio | Kotlin

Android Check Internet Connection | Monitor Connectivity Continuously | Android Studio | Kotlin

Chirag Kachhadiya

4 года назад

22,168 Просмотров

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


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

Hasib Azizi
Hasib Azizi - 17.11.2022 20:01

you are the beast bro

Ответить
jeckefe
jeckefe - 18.09.2021 01:26

Amazing!!!

Ответить
Cyber Security
Cyber Security - 17.09.2021 18:01

java code please

Ответить
Ravi S Ranjan
Ravi S Ranjan - 12.09.2021 14:19

Can i get the same kotlin code in java...I have not started Kotlin yet.

Ответить
itomasan dev
itomasan dev - 20.08.2021 07:36

i have a problem when i open another activity, do have to add
val networkConnection = NetworkConnection(applicationContext)
networkConnection.observe(this, Observer { isConnected ->
if (isConnected) {


}else {


}
})


in all activity?
thanks for your help

Ответить
M27Lab
M27Lab - 07.07.2021 21:29

Why didn't you talk man?

Ответить
Games For U
Games For U - 02.05.2021 15:50

You shouldn't use deprecated code "Network Info" for best practice.

Ответить
Akhilesh Chaudhary
Akhilesh Chaudhary - 26.02.2021 10:10

inside onInactive under if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
use
connectivityManager.unregisterNetworkCallback(networkCallback)

Ответить
Jishnu N Krishnan
Jishnu N Krishnan - 06.02.2021 08:22

Add git

Ответить
Jishnu N Krishnan
Jishnu N Krishnan - 05.02.2021 20:46

It'll be nice, If we got explanation for each and every code...Thank YOu

Ответить
Hulk
Hulk - 05.02.2021 08:58

When it already showing deprecated, Why don't you start with new way of implementing with updated api

Ответить
Jozef J
Jozef J - 28.01.2021 05:04

Awesome, thank you so much.... muahh....muaaaahhhh 😊

Ответить
Beka Gogichaishvili
Beka Gogichaishvili - 08.01.2021 20:13

app crash after screen orientation change?

Ответить
Александр Маловатый
Александр Маловатый - 11.12.2020 09:51

Thank you. It's very helpful.

Ответить
Suresh Sivalingam
Suresh Sivalingam - 07.12.2020 06:30

"java.lang.IllegalArgumentException: NetworkCallback was not registered"
Reply us

Ответить
Leanne Ralph Isales
Leanne Ralph Isales - 03.12.2020 10:01

Great Tutorial! :) But need of you talking hehe. Thanks!

Ответить
Silvestre Ramírez
Silvestre Ramírez - 22.10.2020 01:24

Does it work even if no mobile data is on but no mobile data?

Ответить
albatross Projects
albatross Projects - 12.10.2020 18:58

Thank 👍 but you should have you to provide source code link please give the source code

Ответить