Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Mobile
 Showing the GPS Settings Icon

  Switch on low bandwidth view
Showing the GPS Settings Icon
Windows Mobile SupportedWindows Embedded CE Not Supported
8/28/2008

On devices running Windows Mobile 6, you can launch the GPS Settings dialog by clicking its icon in the Settings window. On some Windows Mobile Version 5.0-based devices, depending on the manufacturer, this option is hidden. If you are going to create a managed GPS application that targets Windows Mobile Version 5.0-based devices, your application should be able to reveal the icon by modifying the registry. You can add this functionality to a Settings form for your application or add it to a custom installation dll. Your application's documentation should also mention this issue.

To display the GPS Settings icon, if it is hidden, an application should check the registry value HKLM\ControlPanel\GPS Settings for the value “Hide” or “Redirect” and deletes these values if they are present. The following example shows how to do this in managed code.

private void showGPSSettingsItem_Click(object sender, EventArgs e)
{
  Microsoft.Win32.RegistryKey key;
  key = Microsoft.Win32.Registry.LocalMachine.
  OpenSubKey("ControlPanel\\GPS Settings", true);

  if (key.GetValue("Hide") != null)
    key.DeleteValue("Hide");
  if (key.GetValue("Redirect") != null)
    key.DeleteValue("Redirect");
}
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker