Code example for CdmaCellLocation

Methods: getBaseStationIdgetNetworkId

0
			        cell = new CellLogEntry(gsmLoc.getCid(), gsmLoc.getLac());
		    	} 
		    	else if (location instanceof CdmaCellLocation)
		    	{ 
		    		CdmaCellLocation cdmaLoc = (CdmaCellLocation) location;
			        Log.i(TAG, "Detected cell NID: " + cdmaLoc.getNetworkId() + " BID: " + cdmaLoc.getBaseStationId());
			        cell = new CellLogEntry(cdmaLoc.getBaseStationId(), cdmaLoc.getNetworkId());
		    	} 
		    } 
	    	else 
	    	{ 
		        Log.i(TAG, "Unknown phone type " + telephony.getPhoneType());
	    	} 
		} 
		 
		return cell;
	} 
} 
Experience pair programming with AI  Get Codota for Java