Yes, that was exactly my point. But the background sync is only rolled in
starting with Android 4.0, right?
 24.07.2012 2:36 пользователь "Robert Greenwalt" <[email protected]>
написал:

> If you ask for the active network and verify it's connected you should not
> need to check other settings (mobile data togle, background-sync, etc).
>  They are all rolled in.
>
>
> On Mon, Jul 23, 2012 at 2:44 PM, Kostya Vasilyev <[email protected]>wrote:
>
>> 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
>>
>
>  --
> 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