2

CellSignalStrength是 android 中的一个新 API 类。

它在 API 级别 17 上发布。

如何在 Android 中获取此小区服务信号强度?

4

1 回答 1

1

您需要使用这些类之一:

我玩过它,所以这是我的代码:

final TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
CellInfoGsm cellInfoGsm = (CellInfoGsm) telephonyManager.getAllCellInfo().get(0);
CellSignalStrengthGsm cellSignalStrengthGsm = cellInfoGsm.getCellSignalStrength();
cellSignalStrengthGsm.getDbm();
于 2012-11-27T13:20:22.613 回答