Code example for TelephonyManager

Methods: getDeviceId, getSimCountryIso, getSimOperatorName, getSubscriberId

0
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} 
 
		sb.append("\r\nDeviceId(IMEI) = " + tm.getDeviceId());
		// sb.append("\r\nDeviceSoftwareVersion = " + 
		// tm.getDeviceSoftwareVersion()); 
		// sb.append("\r\nLine1Number = " + tm.getLine1Number()); 
		// sb.append("\r\nNetworkCountryIso = " + tm.getNetworkCountryIso()); 
		// sb.append("\r\nNetworkOperator = " + tm.getNetworkOperator()); 
		// sb.append("\r\nNetworkOperatorName = " + 
		// tm.getNetworkOperatorName()); 
		// sb.append("\r\nNetworkType = " + tm.getNetworkType()); 
		// sb.append("\r\nPhoneType = " + tm.getPhoneType()); 
		sb.append("\r\nSimCountryIso = " + tm.getSimCountryIso());
		// sb.append("\r\nSimOperator = " + tm.getSimOperator()); 
		sb.append("\r\nSimOperatorName = " + tm.getSimOperatorName());
		// sb.append("\r\nSimSerialNumber = " + tm.getSimSerialNumber()); 
		// sb.append("\r\nSimState = " + tm.getSimState()); 
		sb.append("\r\nSubscriberId(IMSI) = " + tm.getSubscriberId());
		// sb.append("\r\nVoiceMailNumber = " + tm.getVoiceMailNumber()); 
 
		LogRingForu.i("info", sb.toString());
		return sb.toString();
	}