通过应用程序打开Windows Phone位置设置 [英] Open Windows Phone Location Settings through an application

查看:69
本文介绍了通过应用程序打开Windows Phone位置设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,如果用户允许使用他/她的当前位置,那么如果位置服务已关闭,我需要将用户重定向到电话位置设置.

I am developing an application in which if the user allows to use his/her current location,then I need to redirect the user to the phone location settings if the Location services are turned off.

有什么办法吗?

谢谢

Ravdeep Singh

Ravdeep Singh

推荐答案

嘿,最简单的方法是调用启动器:

Hey, easiest way is to call a Launcher:

在C#中:

var launcher = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));

这可用于其他设置区域,例如锁屏等.希望能有所帮助!

This can be used for other areas of settings as well like the lockscreen, etc. Hope that helps!


这篇关于通过应用程序打开Windows Phone位置设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆