How to Observe the REAL Internet Connectivity - Android Studio Kotlin Tutorial

preview_player
Показать описание
In this video you'll learn how you can observer the real connectivity status on Android. It will give you live changes when internet becomes unavailable and when you're back online.

💸💸💸 Black Week: Up to 30% on ALL Courses & Bundles and Mobile Dev Campus:

🎁 Get my FREE 4.5h Best Practice Guide to Android Architecture:

💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:

Read our weekly Android blog:

Regular programming advice on my Instagram page:

Get the source code for this video on GitHub:
Рекомендации по теме
Комментарии
Автор

While there are many solutions for this out there, yours is the cleanest. Thank you!

AbdulelahAGR
Автор

So many dependences needed nowadays 🙀 thanks for the video!

alexrudy
Автор

Super useful and super easy. Much appreciated!

enriqueajin
Автор

Just in time for my capstone. Thanks homie G

joeybasile
Автор

Impressive content, Philipp Lackner. Looking forward to seeing your next upload. I smashed the thumbs up button on your video. Keep up the fantastic work! Your approach to observing internet connectivity is quite thorough. Have you considered the implications of network latency when validating connections, and how might that affect user experience in real-time applications?

KeyserTheRedBeard
Автор

Clean connectivity <3 thanks for this approach

PaparazziTeamYT
Автор

Is there a way to detect if connected behind the Great Firewall in China?

mark-
Автор

Hi Philipp, if WE have many viewmodels (many screen), do WE have to inject the networkobserver in each one ti monitor internet connetion, or there IS another approche

benzaiedali
Автор

Hi Philip, First of all, thank you for your amazing videos! Your channel has been an incredible resource for me as I continue my journey in Android development.

I recently graduated with a degree in computer science, and I’m now exploring my first job opportunities in native Android development. I have the chance to join a company as an intern/junior developer, but they haven’t transitioned to Jetpack Compose yet and still use XML for building UIs. Do you think it’s a good idea to join a company like this? Would it still provide valuable learning and growth opportunities for me, or should I focus on finding a place that works with Compose and other modern tools? Thank you in advance for your time!

yomnaaamr
Автор

It'd be nice if you make a video about how prepopulate Room DB, plus you should use foreign keys

jorgejordao
Автор

Hreat explanation, as always. What about to get que quality of the network to tell the user the performance of the app could be impacted by the network quality?

FeanilKaenor
Автор

i am here to learn Kotlin and Android App Development. Can you suggest your playlist serials.

IslamicAudiobook
Автор

In my experience it is better to not check at all and handle the results instead, more on a mobile device where this status can change any second, it does not make sense to wake up some radio or similar just to check connectivity and reacting based on that, the next second the result may be another one again.

Daaaaaaavid
Автор

Hey philipp do you use State Pattern in your android apps?

D-Gowda
Автор

Hey please make a video on how coukd i use resources of a KMP project's in a Android project,
If you had already build such video please refer me i need it

codeking
Автор

Hi Philip,
In this method the first thing it checks is whether we are in a captive portal situation. The default URL to check that is in ConnectivityService.
looks like this method checks a URL that is blocked in china. so my question is that can we use this approach in china or any other country that blocked the address?

samansattari
Автор

I have a doubt
Is this will work for the sim network too
For instance, i have a sim with no mobile data, will it will say that the insternet is not there?

geniuscriminaltamil
Автор

What about initial state that was set to false... And what if we already connected when starting this app? Will some network callbacks be called in this state?

DenisKor
Автор

can you get and show the internet speed in that connectivity manager?

esbilo
Автор

Video about nested navigation in compose Multiplatform

sageldialyyew
visit shbcf.ru