tags:

views:

126

answers:

1

hi,

How could I detect that the phone is data roaming ?

+1  A: 

You can use the isNetworkRoaming() function from TelephonyManager to find this out

Prashast
Is this function returning true whether data roaming or voice roaming ? To me the documentation is confusing : "Returns true if the device is considered roaming on the current network, for GSM purposes. "
rantravee
whats the difference between the two? If you are on a roaming network you will be both on data as well as voice roaming. Is there any case where you can be on one and not on the other?
Prashast
I'd agree on Prashast answer and comment. Nice answer!
BennySkogberg