Code example for GsmCellLocation

Methods: getCidgetLac

0
	 */ 
	public void updateCell() { 
 
		try { 
			location = (GsmCellLocation) tm.getCellLocation();
			cid = location.getCid();
			lac = location.getLac();
		} catch (Exception e) {
			// TODO: handle exception 
		} 
 
		/* 
		 * Mcc and mnc is concatenated in the networkOperatorString. The first 3 
		 * chars is the mcc and the last 2 is the mnc. 
		 */ 
		String networkOperator = tm.getNetworkOperator();
		if (networkOperator != null && networkOperator.length() > 0) {
			try { 
				mcc = Integer.parseInt(networkOperator.substring(0, 3));
				mnc = Integer.parseInt(networkOperator.substring(3));
Stop searching for code, let great code find you!  Add Codota to your java IDE