Example usage for android.telephony NeighboringCellInfo UNKNOWN_RSSI

List of usage examples for android.telephony NeighboringCellInfo UNKNOWN_RSSI

Introduction

In this page you can find the example usage for android.telephony NeighboringCellInfo UNKNOWN_RSSI.

Prototype

int UNKNOWN_RSSI

To view the source code for android.telephony NeighboringCellInfo UNKNOWN_RSSI.

Click Source Link

Document

Signal strength is not available

Usage

From source file:org.mozilla.mozstumbler.service.scanners.cellscanner.CellInfo.java

void setNeighboringCellInfo(NeighboringCellInfo nci, String networkOperator) {
    final int lac, cid, psc, rssi;

    reset();// w  ww  .  java2  s .com
    mCellRadio = getCellRadioTypeName(nci.getNetworkType());
    setNetworkOperator(networkOperator);

    lac = nci.getLac();
    cid = nci.getCid();
    psc = nci.getPsc();
    rssi = nci.getRssi();

    if (lac >= 0)
        mLac = lac;
    if (cid >= 0)
        mCid = cid;
    if (psc >= 0)
        mPsc = psc;
    if (rssi != NeighboringCellInfo.UNKNOWN_RSSI)
        mAsu = rssi;
}