2016-04-25 134 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提供)