除了三星Galaxy Nexus(Toro)外,我使用的4G设备检测代码在所有其他设备上都有效
这是我使用的代码

boolean is4G = this.getPackageManager().hasSystemFeature("com.verizon.hardware.telephony.lte");

最佳答案

你的应用程序只适用于Verizon吗?
我想他们改变了Toro的功能名称
https://bitbucket.org/kejar31/android_vendor_samsung/src/956695341253/toro/proprietary/com.vzw.hardware.lte.xml
请尝试此代码..可能有用

hasSystemFeature("com.vzw.hardware.lte");

07-24 09:55