Code example for GsmCellLocation

Methods: getCidgetLac

0
    if ( cellLoc.getClass().getSimpleName().equals("CdmaCellLocation") ) {
      ListActivity.info("cell location changed: cdma: " + cellLoc);
    } 
    else if ( cellLoc instanceof GsmCellLocation) {
      GsmCellLocation gsmCell = (GsmCellLocation) cellLoc;
      ListActivity.info("cell location changed: gsm Cid: " + gsmCell.getCid());
      ListActivity.info("cell location changed: gsm Lac: " + gsmCell.getLac());
    } 
  } 
   
  public boolean isPhoneActive() { 
    return isPhoneActive;
  } 
   
  public int getStrength() { 
    return strength;
  } 
   
  public ServiceState getServiceState() {
    return serviceState;
Contextual code suggestions in your IDE  Get Codota for Java