Besides this:
InetAddress.getByName("www.xy.com").isReachable(timeout)
or pinging to any server
is there any other way to continuously check if the device has internet access. And by that I mean not just connected to any network, but having actual access to the internet.
Something similar to what lollipop does when it's connected to some WIFI network but the WIFI network does not have internet access and shows an exclamation mark.
Note: I already know the below stuff and the connection change is detected fine
<receiver android:name=".MyReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
if (netInfo != null && netInfo.isConnectedOrConnecting()) {
isConnected = true;
networkName = netInfo.getTypeName();
networkType = netInfo.getType();
}