Launch the Bluetooth Settings App using URI Scheme in Windows Phone 8

Published on August 28, 2013 by abundantcode

Filed under Windows Phone

Last modified August 28, 2013

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 5676 times

Below is a sample code snippet demonstrating how launch the Bluetooth Settings app via the URI Scheme and LaunchUriAsync method in Windows Phone using C#.

Launch the Bluetooth Settings App using URI Scheme in Windows Phone 8

using Microsoft.Phone.Controls;

using System;

using System.Windows;

using System.Windows.Controls;

using Windows.System;

namespace AbundantCodeWP8

{

public partial class MainPage : PhoneApplicationPage

{

public MainPage()

{

InitializeComponent();

}

async private void Button_Click_1(object sender, RoutedEventArgs e)

{

// How to open the bluetooth Settings App using URI Scheme in Windows Phone 8 using C#.

await Launcher.LaunchUriAsync(new Uri("ms-settings-bluetooth:"));

}

}

}

Leave a Comment


x

You might be Interested in these Posts

How to decode a base64 string in C#?

Here's a sample code snippet demonstrating how you can easily decode a base64 encoded string in C#. ...

How to disable editing of items in a combo box in c#?

When working in Win forms using C# and especially when you use the combo box , you would have notice...

Visual Studio 2017 Launch and 20th Anniversary Event: Application Development

Excited about the online Visual Studio Launch on March 7? Come back on March 8, and dive even deeper...