Code example for CdmaCellLocation

Methods: getBaseStationIdgetNetworkIdgetSystemId

0
			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);
		} 
		map = new HashMap<String, Object>();
		map.put("title", "CellLocation");
		map.put("info", cellType);
		map.put("no", 8);
		list.add(map);
 
		map = new HashMap<String, Object>();
		map.put("title", "MCC MNC");
		map.put("info", "mcc="+getResources().getConfiguration().mcc + " mnc=" + getResources().getConfiguration().mnc);
		map.put("no", 9);
		list.add(map);
 
Experience pair programming with AI  Get Codota for Java