Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I turn on/off WiFi programatically on WP7

I would like to know if there is any possibility to turn wifi on and off programatically. My idea is to have a background task looking for geocoordinates and toggle the wifi settings wether the phone is in the range of a former saved location or not.

Yet everything I saw were apps which get the state of the wifi and quick jump to the wifi settings. I would like to implement a more automated app which helps saving battery power.

like image 759
Matthias Thieroff Avatar asked Dec 21 '22 02:12

Matthias Thieroff


1 Answers

Sorry, you can't programmatically turn on or off the wifi. The best you can do is displaying the WIFI settings page and let the user take care of it.

like image 122
Kevin Gosse Avatar answered Dec 23 '22 17:12

Kevin Gosse