Code example for TelephonyManager

Methods: getNetworkOperator

0
    /* (non-Javadoc) 
     * @see com.wayfinder.pal.network.info.TGPPInfo#getCurrentMCC() 
     */ 
    public String getCurrentMCC() throws NetworkException {
        // first 3 is MCC 
    	String net = m_telMgr.getNetworkOperator();
    	if (net.length() > 4) {
    		return net.substring(0, 3);
    	} else { 
    		return UNKNOWN;
    	} 
    } 
 
    /* (non-Javadoc) 
     * @see com.wayfinder.pal.network.info.TGPPInfo#getCurrentMNC() 
     */ 
    public String getCurrentMNC() throws NetworkException {
        // first 3 is MCC, the rest (2 or 3) is MNC 
    	String net = m_telMgr.getNetworkOperator();
    	if (net.length() > 4) {
    		return net.substring(3);