/**
* Requeries neighboring cells
*/
protected void updateNeighboringCellInfo() {
try {
/*
* NeighboringCellInfo is not supported on some devices and will return no data. It lists
* only GSM and successors' cells, but not CDMA cells.
*/
List<NeighboringCellInfo> neighboringCells = mainActivity.telephonyManager.getNeighboringCellInfo();
String networkOperator = mainActivity.telephonyManager.getNetworkOperator();
mCellsGsm.updateAll(networkOperator, neighboringCells);
mCellsLte.updateAll(networkOperator, neighboringCells);
} catch (SecurityException e) {
// Permission not granted, can't retrieve cell data
Log.w(TAG, "Permission not granted, cannot get neighboring cell info");
}
}
RadioSectionFragment.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:satstat
作者:
评论列表
文章目录