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 Reply