Code example for CdmaCellLocation

Methods: getBaseStationLatitude, getBaseStationLongitude

0
 
		// ÅжÏCellLocationÀàÐÍ£¬ÊÇgsm»òcdma 
		if (cellLocation != null && cellLocation instanceof CdmaCellLocation) {
			Double[] rls = new Double[2];
				CdmaCellLocation cdmaCellLocation = (CdmaCellLocation) cellLocation;
				double lat = (double) cdmaCellLocation.getBaseStationLatitude() / 14400;
				double lon = (double) cdmaCellLocation
						.getBaseStationLongitude() / 14400;
				rls[0] = lat;
				rls[1] = lon;
				return rls;
			} 
 
		return null ; 
		 
	} 
	 
	/** 
	 * ¶¨Î»¼¯ºÏ 
	 * */ 
	public static Double[] getLocationAll(Context context){