question: public boolean isDataConnected ( ) { ConnectivityManager connectMan = ( ConnectivityManager ) getSystemService ( Context . CONNECTIVITY_SERVICE ) ; NetworkInfo activeNetworkInfo = connectMan . getActiveNetworkInfo ( ) ; return activeNetworkInfo != null && activeNetworkInfo . isConnectedOrConnecting ( ) ; }
target:  Method check, if internet is available.