How to Launch WP8 built-in Apps using URI Schemes?
In Windows Phone 7, we had four network settings page that we can invoke using the ConnectionSettingsTask. We had no other APIs to launch other settings page but in Windows Phone 8 Microsoft exposed few schemas for invoking these settings pages.
In addition to the existing pages, now we have few more as addition. Today in this post we will learn how to open those settings page using proper URI schemes.
In addition to the Airplane Mode, Bluetooth, Cellular and Wi-Fi settings page, now we have few more settings page which we can now invoke from our application. Those new settings pages are Location, Accounts, Email & Accounts and Lock Screen.
There is also a API changes to invoke those settings page from your Windows Phone 8 application. Instead of calling the ConnectionSettingsTask, we have to use the "Windows.System.Launcher.LaunchUriAsync(new Uri(URI_SCHEME))" method with proper schema definition as part of the Uri parameter.
In case you want to call the specific settings page, you have to call the LaunchUriAsync(…) method from the Windows.System.Launcher namespace and have to pass the Uri with proper schema definition as parameter.
I hope that, it will help you to integrate various settings page of Windows Phone 8 device in your WP8 application. There are few more things that you can do with the LaunchUriAsync(…) method and Scheme which we will discuss in future post. Till then enjoy working with it. Happy Coding.
If you have come this far, it means that you liked what you are reading (How to Launch WP8 built-in Apps using URI Schemes?).