Android devices detect captive portals requesting a specific URL , that currently is http://connectivitycheck.gstatic.com/generate_204. If they receive a 204 response then there’s connectivity. If they receive a 30x response, then there’s a captive portal in the way.
Read moreWhat is Connectivitycheck?
One of the “Android calling home” functions that is tricky to disable or remove, is the check for internet connectivity after joining a WiFi network . Every Android device requests https://connectivitycheck.gstatic.com/generate_204 after connecting to a wireless network.8 Kas 2018
Read moreWhat is Gstatic Comconnectivitycheck?
Android will try gstatic, and if it redirects, then you get a popup for the company/store’s wifi page. Constant requests to connectivitycheck. gstatic.com says this (the correct answer): It’s the method Chrome uses to detect if it has full access to the Internet without being stopped by a captive portal sign in screen.
Read moreHow do I check network state?
Check Internet Connection Status In android, we can determine the internet connection status easily by using getActiveNetworkInfo() method of ConnectivityManager object . Following is the code snippet of using the ConnectivityManager class to know whether the internet connection is available or not.
Read more