문제

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