我正在开发一个应用程序,其中我需要一些网络参数单元id和pci.I。我有5g启用设备与android 10。我正在尝试通过电话管理器访问手机id,这是代码。
List<CellInfo> allCellInfo = telephonyManager.getAllCellInfo();
for (CellInfo info : allCellInfo){ if (info instanceof CellInfoNr && info.isRegistered()){ }}
但是allCellInfo却被空了,我说的是5g SA (高通设备)。
我见过这个帖子this,但没有真正的帮助。请帮帮忙
发布于 2021-07-09 07:34:05
因此,搜索了很多,但没有找到任何相关的答案,最后,我更新了我的Android 105 g设备到Android 11 5g设备,它为我工作,具有相同的功能。
https://stackoverflow.com/questions/68225460
复制相似问题