문제

I'm trying to detect wether the device is roaming or not in my app and I've found these two methods:

Is there an essential difference between them or can I just choose one?

도움이 되었습니까?

해결책

I think TelephonyManager.isNetworkRoaming()is 2G-related, whether NetworkInfo.isRoaming() is 3G-related - setting data-roaming on/off is a distinct option in the android-settings, so if it's off you still may get truefor GSM (TelephonyManager.isNetworkRoaming())

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top