How to modify Cellular Settings in Windows Phone using C# ?

You can access the Cellular Settings of the Windows Phone from your App by using the Launcher “ConnectionSettingsTask” .

The ConnectionSettingsTask will launch the settings form of the specified property of the ConnectionSettingsType .

How to modify Cellular Settings in Windows Phone using C# ?

The ConnectionSettingsType currently accepts AirplaneMode , Bluetooth , Cellular and WiFi .

To access the Cellular Settings form , just set the ConnectionSettingsType of the “ConnectionSettingsTask” to Cellular and call the show method .

How to modify Cellular Settings in Windows Phone using C# ?

This will launch the Cellular Settings form which allows the user to modify them .

To use the ConnectionSettingsTask Launcher , use the namespace Microsoft.Phone.Tasks;

ConnectionSettingsTask connectionTask = new ConnectionSettingsTask();
connectionTask.ConnectionSettingsType = ConnectionSettingsType.;
connectionTask.Show();

    2 Comments

  1. Pablod
    June 14, 2012
    Reply

    Is it possible to change the settings without using the launcher? I only want a button that dissable the wifi for example, not a button that open the wifi configuration

  2. June 18, 2012
    Reply

    No . Currently its not possible to change the settings without the launcher screen…

Leave A Reply

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

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...