Code example for ServiceState

Methods: getIsManualSelection, getOperatorAlphaLong, getRoaming, getState, toString

0
	 * @param serviceState 
	 * @return  
	 */ 
	private HashMap<String, String> collectServiceStateStats(ServiceState serviceState) {
		HashMap<String, String>stats = new HashMap<String, String>();
		Log.i("ServiceState: ", serviceState.toString());
		stats.put("ServiceState", serviceState.toString());
		String oplong = serviceState.getOperatorAlphaLong();
		stats.put("Operator", oplong);
		Log.i("ServiceState: ", oplong);
		Log.i("ServiceState: ", " is roaming => " + serviceState.getRoaming());
		stats.put("Roaming", Boolean.toString(serviceState.getRoaming()));
		Log.i("ServiceState: ", " manual network selection => "
				+ serviceState.getIsManualSelection());
		stats.put("Manual Network selection", Boolean.toString(serviceState.getIsManualSelection()));
		int state = serviceState.getState();
		parseSignalState(stats, state);
		return stats;
	} 
 
	/**