开发者

windows phone 7 how to navigate to settings menu

开发者 https://www.devze.com 2023-03-19 13:40 出处:网络
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.

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 stand开发者_Python百科ard 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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号