Aller au contenu

How to find Phone Signal Strength in Windows Mobile?

Sep 16, 2009 | 42Gears Team

There is no API to determine the current signal strength of the phone radio on a Windows Mobile Phone Device. But as it changes the status is updated in the registry at the following location.

[HKEY_LOCAL_MACHINESystemStatePhone]

“Signal Strength” value represents the signal value (0-100). The operating system uses this value to show the bars on the taskbar representing the current signal strength.

You might want to know in your application when the signal strength changes. Your application can poll the registry but polling is a resource intensive operation and should be avoided. Instead you can use RegistryNotifyCallback function provided by State and Notifications Broker mechanism. This powerful feature is available since WM 5.0 and gives applications an easy way to get notified when status of registry value changes.

Visit the following link for more information and sample code.
http://msdn.microsoft.com/en-us/library/ms894764.aspx

Native programmers should check out snapi.h file in the WM SDK. It gives more information about the bitmasks of various registry values.

Subscribe for our free newsletter

Thank you! you are successfully subscribed.
newsletter

Exclusive News and Updates on Enterprise Mobility!

* I consent to receive newsletters via email from 42Gears and its Affiliates.
Please agree
* I have reviewed and agreed to 42Gears Privacy Policy and Terms of Use prior to subscribing and understand that I may change my preference or unsubscribe at any time.
Please agree
Please verify captcha
Please enter a valid official email