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。