Beispiel #1
0
 @Override
 public void onCellLocationChanged(CellLocation location) {
   if (phoneType == TelephonyManager.PHONE_TYPE_CDMA) {
     CdmaCellLocation cdma = (CdmaCellLocation) location;
     CellLocationInfo.Params p = new CellLocationInfo.Params(baseStation);
     p.id = cdma.getBaseStationId();
     p.lat = cdma.getBaseStationLatitude();
     p.lon = cdma.getBaseStationLongitude();
     baseStation = new CellLocationInfo(p);
     notifyListeners(EVENT_CELL_LOCATION);
   }
 }