windows phone 7 how to navigate to settings menu

瘦欲@ 提交于 2019-12-10 22:26:13

问题


I have a windows phone 7 app that uses GPS to track user position. Now the user can disable this feature through the phone's setting menu. the app handles this disabling fine and gives them a message. This is all pretty standard windows phone stuff.

My question is whether I can navigate (inside the app) to the settings menu so that the user can enable phone location services? Ideally I would give them a link or a button that they touch and they are then taken out of the app to the settings menu. They would then click 'back' and return to the app.


回答1:


No, at the moment, there's no way to fire up the Settings menu from inside your app.




回答2:


Try this:

Windows.System.Launcher.LaunchUriAsync(new Uri(“ms-settings-location:”));

Not sure if it works on WP7 though.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx



来源:https://stackoverflow.com/questions/6668496/windows-phone-7-how-to-navigate-to-settings-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!