1

我试图关注许多帖子,但没有取得多大成功。也就是说,这篇文章总结了获取 CID 的新方法(API 17 之后)和旧方法。我也试过

CdmaCellLocation cdmaLocation = (CdmaCellLocation)telephonyManager.getCellLocation();

即使我连接到 Verizon 网络,它也会返回 null。虽然在文档中:

If there is only one radio in the device and that radio has an LTE connection, this method will return null. 
The implementation must not to try add LTE identifiers into the existing cdma/gsm classes.

进一步研究这个问题,我尝试了 telephonyManager.getPhoneType() 并得到 0,这意味着它不被识别为 CDMA 或 GS​​M 手机,尽管它有数据连接。有没有办法解决这个问题,以便在 API 17 之前以某种方式获取 CID?我正在使用的实际平板电脑是三星 Galaxy Tab 2。

谢谢

4

0 回答 0