I have this Android application that requires downloading data from a remote server over the Internet. This functional update, obviously, requires that the device not only connects to some network, but also to the Internet.
so: if you want to schedule the update service by any date, and when it starts, it must determine whether it can really reach the target server or not. so simple "is this a device connected to wifi?"? not enough, because the device can be connected to a wireless network that does not offer Internet access. something like ping is required ...
What is the easiest / best way to determine if there is Internet access, i.e. a server is available?
source
share