How to enable or disable Bluetooth in Windows Phone using C# ?

If you are a Developer and have an task to change or access the Bluetooth Settings via some user interaction , you can use the Launcher “ConnectionSettingsTask” to achieve it.

Just use the ConnectionSettingsType to Bluetooth and call the show method of the ConnectionSettingsTask . This will Launch the Bluetooth Settings Window and lets the user to change the Bluetooth settings or even enable or disable the Bluetooth.

You use the Launcher , use the namespace Microsoft.Phone.Tasks;

private void LaunchBluetoothSettingsForm()
   ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
   connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;



If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
Pin It

Leave a Reply

Your email address will not be published. Required fields are marked *