简体   繁体   English

是否可以从WP7应用导航到设备设置?

[英]Is it possible to navigate from WP7 app to the Device settings?

I'm developing an LBS application for WP7. 我正在为WP7开发LBS应用程序。

And i wondered, is it possible to check whether the location services is On? 我想知道是否可以检查定位服务是否开启? Is it possible to navigate from within the app to the OS settings so the user could turn them on? 是否可以从应用程序内导航到OS设置,以便用户可以打开它们?

Thanks! 谢谢!

You can construct an instance of GetCoordinateWatcher . 您可以构造GetCoordinateWatcher的实例。 If its Status == GeoPositionStatux.Disabled then the Location Service is not on. 如果其Status == GeoPositionStatux.Disabled则定位服务未打开。

You can't navigate to the Phone settings, so you will have to give a helpful description of the problem to the user and what they may choose to do about it. 您无法导航到“电话”设置,因此必须向用户提供有关问题的有用描述以及他们可以选择如何解决。

Navigation between applications is currently restricted to "tasks" ( Launchers and Choosers ), for which settings has no representative. 目前,应用程序之间的导航仅限于“任务”( 启动器和选择器 ),其设置没有代表。

Interestingly it sits on top of a very generic (and very internal) Uri based navigation system that will hopefully be expanded upon for more inter-application navigation. 有趣的是,它位于非常通用(且非常内部)的基于Uri的导航系统之上,希望可以对其进行扩展以实现更多的应用程序间导航。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM