如何以编程方式在Windows Phone 7中打开和关闭GPS [英] How to programmatically turn GPS on and off in Windows Phone 7

查看:166
本文介绍了如何以编程方式在Windows Phone 7中打开和关闭GPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,要打开和关闭Wp7中的GPS设备,我在设置菜单中进行设置。奇迹如果这可以在代码中完成?



谢谢

----------更新



抱歉让您感到困惑。而不是打开和关闭GPS,我真正的意思是如何打开和关闭Wp7的设置菜单中的LOCATION。

您可以获取 GPS数据,但无法通过应用程序打开或关闭传感器。



您可以在应用程序中执行的操作最多的是开始地理定位数据采集​​和停止它。


So far, to turn on and off the GPS device in Wp7, I do it in Settings Menu. Wonder If this can be done in code?

Thanks

---------- Update

Sorry for the confusion. Instead of turning GPS on and off, What I really mean is how to turn on and off the LOCATION in the Settings Menu of Wp7.

解决方案

You can get the GPS data but you are not able to turn the sensor on or off via your application.

The most you can do in your application is start the geolocation data acquisition and stop it.

这篇关于如何以编程方式在Windows Phone 7中打开和关闭GPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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