CellSignalStrength是 android 中的一个新 API 类。
它在 API 级别 17 上发布。
如何在 Android 中获取此小区服务信号强度?
您需要使用这些类之一:
我玩过它,所以这是我的代码:
final TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
CellInfoGsm cellInfoGsm = (CellInfoGsm) telephonyManager.getAllCellInfo().get(0);
CellSignalStrengthGsm cellSignalStrengthGsm = cellInfoGsm.getCellSignalStrength();
cellSignalStrengthGsm.getDbm();