mobile/src/main/java/drost_stein/fbg/hsbo/de/urbantrackingapp/NetworkReceiver.java
private boolean checkIsOnline() {
        ConnectivityManager connMgr = (ConnectivityManager)
                context.getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
        return (networkInfo != null && networkInfo.isConnected());
    }
/**
     * checks if there is any connection
     *
     * @return true if there is a any connection
     */
checks if there is any connection
@return true if there is a any connection
checks if there is any connection @return true if there is a any connection
private boolean checkIsOnline() {
        ConnectivityManager connMgr = (ConnectivityManager)
                context.getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
        return (networkInfo != null && networkInfo.isConnected());
    }
private boolean checkIsOnline ( ) { ConnectivityManager connMgr = ( ConnectivityManager ) context . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; NetworkInfo networkInfo = connMgr . getActiveNetworkInfo ( ) ; return ( networkInfo != null && networkInfo . isConnected ( ) ) ; }
checks if there is any connection
 @return true if there is a any connection
checks if there is any connection @return true if there is a any connection