Are there any APIs to check if the WiFi which the Android device is connected to, really serves internet or not?
whenever the device is connected to WiFi, it considers it as online though the Wifi router does not serve internet or idle.
How to check in such situations?
I tried doing some research about this. But came across the method of pinging some site or google DNS to check for connectivity everywhere.
But i want to know if there are any APIs which detects the situation.