Below is a sample code snippet that demonstrated how the developers can use the ConnectionSettingsTask launcher to launch the windows phone device’s Wifi settings app from the Windows Phone 8 App.
How to Launch the Device Wifi Settings App from the Windows Phone 8 App?
using Microsoft.Phone.Controls; using Microsoft.Phone.Tasks; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Windows; using System.Windows.Controls; using Windows.Phone.Speech.Recognition; using Windows.System; namespace AbundantCodeWP8 { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); } private void Button_Click_1(object sender, RoutedEventArgs e) { ConnectionSettingsTask task = new ConnectionSettingsTask(); task.ConnectionSettingsType = ConnectionSettingsType.WiFi; task.Show(); } } }
Leave a Reply