Hello everyone,

I'm using this piece of code to check if internet connection is available:

ConnectivityManager conMgr = (ConnectivityManager)context.GetSystemService 
(Context.ConnectivityService);
bool output = conMgr.ActiveNetworkInfo != null
                        && conMgr.ActiveNetworkInfo.IsAvailable && conMgr
                              .ActiveNetworkInfo.IsConnected;
conMgr.Dispose ();
return output;

It works fine on all my test devices except Vodafone 858 (Huawei). On this 
device I get false even when there's an Edge/3G or WiFi connection available. 
Any ideas why it behaves like this?

Petr
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to