Launching the Location Settings App using URI Scheme in Windows Phone 8

Published on August 29, 2013 by abundantcode

Filed under Windows Phone

Last modified August 29, 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 3692 times

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

Launching the Location Settings App using URI Scheme in Windows Phone 8

// Function open the Location Settings App using URI Scheme in Windows Phone 8 using C#.

private async System.Threading.Tasks.Task LaunchLocationSettingsApp()

{

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

}
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

2 Comments

  1. Atchyut

    Hi admin while i’m trying this code for a button click it is displaying an error as ‘The name Launcher does not exist in current context’
    What i have to do pls reply to my email as soon as possible.
    -ThanQ

    June 19, 2014 - 7:38 am – Reply

    • srikanth

      Hi, you have to import using Windows.System; namespace

      October 12, 2015 - 1:18 pm – Reply

Leave a Comment


x

You might be Interested in these Posts

How to delete user account from command line in Windows 10 ?

You can delete a user account from command line in Windows 10 using the net user command and specify...

How to add new user account from command line in Windows 10 ?

You can add a new user account in Windows 10 using command prompt using the net user command and pas...

How to open display settings from command line in Windows 10 ?

The display properties can be found in the settings app in Windows 10 which lets the users to config...