Difference between NetworkInfo.isRoaming () and TelephonyManager.isNetworkRoaming ()

I am trying to detect whether a device is roaming or not in my application, and I found these two methods:

Is there a significant difference between the two, or can I just select it?

+6
source share
1 answer

I think that TelephonyManager.isNetworkRoaming() is connected with 2G, regardless of whether NetworkInfo.isRoaming() 3G related - setting / moving data in roaming is an excellent parameter in android settings, so if it's possible, you are all equally you can get true for GSM ( TelephonyManager.isNetworkRoaming() )

+3
source

Source: https://habr.com/ru/post/896213/


All Articles