Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn Windows Phone Settings On/Off

OK What I need to do is fairly straightforward : Be able to programmatically (via some API) turn system settings on/off, like :

  • WiFi
  • Bluetooth
  • Cellular
  • FM Radio

Any ideas on how to go about that? (I've searched everywhere and found nothing up-to-date)

like image 373
Dr.Kameleon Avatar asked Dec 11 '22 14:12

Dr.Kameleon


1 Answers

you cannot change the settings through code but you can direct the user to the settings page by using the following navigation statement .

in this it will navigate to settings location page .. from this you can set location settings

similarly you can go to wifi and other settings

var navigate = Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));

like image 56
Sandeep Chauhan Avatar answered Dec 22 '22 21:12

Sandeep Chauhan