Question

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");
Was it helpful?

Solution

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");

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top