0
在TelephonyManager
上調用getAllCellInfo()
方法後,我得到一個CellInfo
的列表。 現在的問題是:如果exampleof CellInfo
是CellInfoLte
,我如何從中獲取cell id和lac code?從CellInfoLte獲取位置區號和小區ID
我試過getCi()
。但價值似乎太大
CellInfoLte infoLte = (CellInfoLte) info;
CellIdentityLte cellIdentity = infoLte.getCellIdentity();
CellSignalStrengthLte cellSignalStrength = infoLte.getCellSignalStrength();
cid = cellIdentity.getCi();
lac = cellIdentity.getTac();
ss = cellSignalStrength.getDbm();
PS:我也想從CellInfoCdma
得到cid。