On Monday, July 23, 2012 5:38:34 PM UTC-7, Robert Greenwalt wrote:
>
> In versions 4.0 and greater, if you app has background data turned off (by
> the user) AND you are in the background and ask for the current active
> network and check if it's connected, you will find it's not connected
> (
2012/7/24 Robert Greenwalt
>
> If either your background data setting is off OR you are in the foreground
> you will be told you are connected (provided a connection, of course).
>
>
Ah, it's good to know there is a special case for when the app is in the
foreground. I don't remember this being d
In versions 4.0 and greater, if you app has background data turned off (by
the user) AND you are in the background and ask for the current active
network and check if it's connected, you will find it's not connected
(it'll be BLOCKED). In fact, if you try to access the network you will
fail.
If e
On Monday, July 23, 2012 2:44:51 PM UTC-7, Kostya Vasilyev 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.
Sorry Kostya - I misread your comment.
Yes - the background data preventer came out in ICS (4.0).
On Mon, Jul 23, 2012 at 4:24 PM, Kostya Vasilyev wrote:
> 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 пользоват
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"
написал:
> If you ask for the active network and verify it's connected you should not
> need to check other settings (mobile data togle, bac
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 wrote:
> It's also a good way to check if the user disabled network connec
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
> Since this message, I did look at the code for Net
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
9 matches
Mail list logo