It's also a good way to check if the user disabled network connectivity
(i.e. the "mobile data" toggle), and starting with Android 4.0, this is
also affected by the "allow apps to perform background sync" system setting.

-- K

2012/7/24 Nathan <[email protected]>

> Since this message, I did look at the code for NetworkInfo.isconnected()
> and it is one line, doesn't look like it will block.
>
> However, I am less certain about ConnectivityManager.getActiveNetworkInfo*
> (**)* since it does call a system service.
>
> Nathan
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to