Hi all,

I have a service that relies on 3G or WiFi network, therefore, I need to be
able to detect network loss and recovery.

I do rely on a broadcast receiver to detect network recovery.

            ConnectivityManager connectivity =
(ConnectivityManager)context.GetSystemService( Context.ConnectivityService
);

            return ( ( connectivity.ActiveNetworkInfo != null ) &&
connectivity.ActiveNetworkInfo.IsAvailable &&
connectivity.ActiveNetworkInfo.IsConnected );

if that returns true, I try to reconnect.

with wifi this seems to work very well. The connection times out cleanly,
and when network returns, it reconnects.
With the 3G network, not so well. I mean, when the network returns it is
able to reconnect perfectly, but the loss effect isn't like the wifi, and I
don't get a timeout...

any thoughts?


-- 
Gonçalo Oliveira
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to