How to get CellSignalStrengthLte.Rsrp value from Android? Please give me some examples
I tried with TelephonyManager but I only have SignalStrength available, I don't see SignalStrengthLTE available.
TelephonyManager mTel;
mTel = (TelephonyManager)GetSystemService(TelephonyService);
return mTel.GetImei(0).ToString()+" " + mTel.SignalStrength.Level.ToString();
You could get the SignalStrengthLTE
like below.
TelephonyManager mTel;
mTel = (TelephonyManager)GetSystemService(TelephonyService);
CellInfoLte cellInfoLte = (CellInfoLte)mTel.AllCellInfo[0];
CellSignalStrengthLte cellSignalStrengthLte = cellInfoLte.CellSignalStrength;
TelephonyManager tm = (TelephonyManager)this.GetSystemService(Context.TelephonyService);
var cellInfoList = tm.AllCellInfo;
foreach (var item in cellInfoList)
{
if (item.GetType() == typeof(CellInfoLte))
{
var value = ((CellInfoLte)item).CellSignalStrength.Rsrp;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.