October 18, 2024

Testing if a Network Connection actually has Internet on Android

Video by CodingWithMitch via YouTube
Source

The best android courses on the planet: https://codingwithmitch.com/

Monitoring network connectivity should be simple. Most of us just want to know if there is internet available. Here I use ConnectivityManager to listen for changes to the network connection. AND check if the connection actually has internet.

https://github.com/mitchtabian/food2fork-compose/blob/master/app/src/main/java/com/codingwithmitch/food2forkcompose/presentation/util/ConnectionLiveData.kt

Social:

https://www.instagram.com/codingwithmitch
.
.

Go to Source