2

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.

mkj
  • 2,761
  • 5
  • 24
  • 28
yamspog
  • 18,173
  • 17
  • 63
  • 95

2 Answers2

2

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

keyboardP
  • 68,824
  • 13
  • 156
  • 205
  • There seems to be an app named toggle in the marketplace that is doing it. – Anthony Wieser Feb 17 '12 at 18:55
  • This answer was posted before Mango was released. Toggle is using an API introduced in Mango called the `ConnectionSettingsTask`: http://msdn.microsoft.com/en-us/library/hh394011%28VS.92%29.aspx. It does not launch the `Settings` menu, but preset sections within the settings menu. – keyboardP Feb 17 '12 at 19:06
  • Toggle doesnt take you to the location services screen as there is no task for that, even in Mango. – bkaid Jun 13 '12 at 19:20
0

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

Steven
  • 4,826
  • 3
  • 35
  • 44