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

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:"));

}

2 Comments

  • 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

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

Leave Your Comment