2016-04-25 133 views
0

TelephonyManager上调用getAllCellInfo()方法后,我得到一个CellInfo的列表。 现在的问题是:如果exam​​pleof CellInfoCellInfoLte,我如何从中获取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。

回答

0

来自CellInfoCdma的Cid和Lac码不可能(实际上CDMA不提供这些,只有GSM提供)