Android/ConnectivityService

"This service is provided through the android.net.ConnectivityManager class. It allows applications to query the state of the network connectivity. It also generates events when the network connectivity changes."