Code example for NetworkInfo.State

Methods: equals

0
			} 
 
			return true; 
		} else { 
			final State state = ni.getState();
			if (state.equals(State.CONNECTED) || state.equals(State.CONNECTING)) {
				return true; 
			} 
 
			return false; 
		} 
	} 
 
}