问题是,当我使用下面的源代码时,我仅在 2G 模式下收到小区 ID,如果我切换到 3G 模式,我有时会收到 HSDPA 的 -1 或 UMTS 的任何内容。源代码是:
for (int i = 0; i < neighCell.size(); i++) {
try {
NeighboringCellInfo thisCell = neighCell.get(i);
int thisNeighCID = thisCell.getCid();
int thisNeighRSSI = -113 + 2*thisCell.getRssi();
log("Base station "+(i+1)+":"+
"\nCellID: "+thisNeighCID+
"; RSSI: "+thisNeighRSSI+" dBm");
} catch (NumberFormatException e) {
e.printStackTrace();
NeighboringCellInfo thisCell = neighCell.get(i);
log(thisCell.toString());
}
}
有什么方法可以在 3G 模式下获取 id,尤其是对于 UMTS?