問題は、以下のソースコードを使用すると、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モード、特にUMTSでIDを取得する方法はありますか?