question: public static boolean isNetworkAvailable ( Context context ) { ConnectivityManager connectivityManager = ( ConnectivityManager ) context . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; NetworkInfo info = connectivityManager . getActiveNetworkInfo ( ) ; return info != null && info . isConnected ( ) ; }
target:  Returns network availability status.