cellinfo

LTE signal ASU level always 97

强颜欢笑 提交于 2019-12-11 09:54:20
问题 I am capturing the RSSI values of LTE signals using the below code: cInfoList = telephony_manager.getAllCellInfo() for (CellInfo info : cInfoList){ if (info instanceof CellInfoLte) { CellSignalStrengthLte signalstrength_lte = ((CellInfoLte) info).getCellSignalStrength(); displayAsu.setText(signalstrength_lte.getAsuLevel() + ""); displayDbm.setText(signalstrength_lte.getDbm() + ""); } } (*note: I just simplified my code: for-loop doesn't override text fields.) In one phone (LG G4) I am getting

getAllCellInfo() returns an empty list in Huawei Honor 7

假装没事ソ 提交于 2019-12-05 12:09:13
I am having an android application that fetches information of cell towers. I use this getAllCellInfo() to fetch info of a primary cell and neighbour cells. I included the ACCESS_COARSE_LOCATION permission to manifest.xml and make a request for the permission in runtime. It works in other phones but in Huawei Honor 7, the function returns an empty list. My code: Catlog: I have checked other people questions: getAllCellInfo returns null in android 4.2.1 and Android getAllCellInfo() returns null . From a question, I thought for Huawei phones, they don't support getAllCellInfo() until I installed