4G device detection code what i use is working in all other devices except Samsung Galaxy Nexus(toro)

This is the code what i use

boolean is4G = this.getPackageManager().hasSystemFeature("com.verizon.hardware.telephony.lte");
有帮助吗?

解决方案

Is your app only for verizon?

I think they have changed the feature name in toro

https://bitbucket.org/kejar31/android_vendor_samsung/src/956695341253/toro/proprietary/com.vzw.hardware.lte.xml

Try this code.. It may work

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

其他提示

4G is actually a marketing term, not a technical term. It generally means that the phone has an LTE, WiMAX, or HSPA connection. Take a look at this question for details on determining the current connection type on Android.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top