Code example for GsmCellLocation

Methods: getCidgetLac

0
			if (mccMnc != null && mccMnc.length() >= 5) {
				gsmMcc = mccMnc.substring(0, 3);
				gsmMnc = mccMnc.substring(3, 5);
			} 
			GsmCellLocation logsm = (GsmCellLocation)lo;
			cellType = String.format("GSM Cid=%08X Lac=%08X Mcc=%s Mnc=%s", logsm.getCid(), logsm.getLac(), gsmMcc, gsmMnc);
		} else if (lo != null) {
			CdmaCellLocation cdma = (CdmaCellLocation)lo;
			String mccMnc = phoneMgr.getNetworkOperator();
			String cdmaMcc = "";
			String cdmaMnc = "";
			if (mccMnc != null && mccMnc.length() >= 5) {
				cdmaMcc = mccMnc.substring(0, 3);
				cdmaMnc = mccMnc.substring(3, 5);
			} 
			cellType = String.format("CDMA StationId=%d NetworkId=%d SysId=%d Mcc=%s Mnc=%s", cdma.getBaseStationId(), cdma.getNetworkId(),
					cdma.getSystemId(), cdmaMcc, cdmaMnc);
		} 
		list.add("\nCellLocation: " + cellType);
 
Connect your IDE to all the code out there  Get Codota for Java