Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP7 Wlan detection (HOW am I online)

to be honest, I am kind of lazy at the moment. I tried a 3 minute search, but I get a lot of Windows7 and C# related stuff, not what I am looking for. Its for a pet project anyway, so I just give it a try:

Is there any way to find out HOW I am connected to the internet in WP7?

Background: Any app which is written for fun purposes, e.g. a picture sorting app. I want it to sync a lot of stuff with my server when I am online via WLAN (e.g. 200mB), but it should not do anything if I am using my expensive GPRS connection...

Thanks for any tips, actually a RTFM with a good search word for google would to the trick :-)

Chris

like image 204
Christian Ruppert Avatar asked Sep 28 '10 22:09

Christian Ruppert


1 Answers

Have a look at this link:

A value from the NetworkInterfaceType enumeration identifying the network type. The value will be one of: Wireless80211 for a Wi-Fi connection, MobileBroadband for a cellular connection, or None if no connection is available.

like image 99
ChristopheD Avatar answered Sep 30 '22 17:09

ChristopheD