public static List<GsmInfo> getGsmInfoList(Context context) { TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); List<CellInfo> cellInfoList = manager.getAllCellInfo(); List<GsmInfo> gsmInfoList = new ArrayList<>(); if (cellInfoList != null) { L.e("cellInfoList.size="+cellInfoList.size()); GsmInfo gsmInfo; for (CellInfo info : cellInfoList) {
android获取周围基站信息
最新推荐文章于 2021-05-25 16:11:25 发布