Code example for ServiceState

Methods: getState

0
		} 
	} 
 
	@Override 
	public void onServiceStateChanged(ServiceState serviceState) {
		mOnline = (serviceState.getState() == ServiceState.STATE_IN_SERVICE);
		fireActivation(); 
	} 
	 
	@Override 
	public void onCallStateChanged(int state, String incomingNumber) {
		mIdle = (state == TelephonyManager.CALL_STATE_IDLE);
		fireActivation(); 
	} 
 
} 
Experience pair programming with AI  Get Codota for Java