Code example for CdmaCellLocation

Methods: getBaseStationId, getNetworkId

0
                    } 
                    break; 
                case TelephonyManager.PHONE_TYPE_CDMA: 
                    CdmaCellLocation cdmaCellLoc = (CdmaCellLocation) telManager.getCellLocation(); 
                    if (cdmaCellLoc != null) { 
                        cID = cdmaCellLoc.getBaseStationId(); 
                        nID = cdmaCellLoc.getNetworkId(); 
                    } 
                    break; 
                 
            } 
             
            //String s = "\"CELL_SIGNAL_STRENGTH\":"+ asu; 
            //s = s + "," + "\"GSM_CELL_ID\":"+ cID; 
            listener.onReadCellSigComplete(cID, nID, asu); 
             
        } 
         
        public void onServiceStateChanged (ServiceState serviceState) { 
            String state = ""; 
            switch (serviceState.getState()) {