Code example for TelephonyManager

Methods: getPhoneType

0
		 
		return telephony;
	} 
	 
	private String getRadio(TelephonyManager manager) {
		switch(manager.getPhoneType()) {
	        case 0x00000000:  
	            return "none"; 
	        case 0x00000001: 
	            return "gsm"; 
	        case 0x00000002: 
	            return "cdma"; 
	        case 0x00000003: 
	            return "sip"; 
	        default: 
	            return null; 
	        } 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE