If you are planning on using the new sensors that are in the Windows Phone code named Mango (Gyroscope, Compass, etc…), you need to add some code to your application to test and see if they are available. You can use the Microsoft.Devices.Sensors namespace to find this out.
bool IsGyroSupported = Microsoft.Devices.Sensors.Gyroscope.IsSupported; bool IsAccelerometerSupported = Microsoft.Devices.Sensors.Accelerometer.IsSupported; bool IsCompassSupported = Microsoft.Devices.Sensors.Compass.IsSupported; bool IsMotionSupported = Microsoft.Devices.Sensors.Motion.IsSupported;
The Motion Sensor is the API that combines all the other sensors and adds some math to
make it easier to build your application using sensors.