May 23, 2011
This sample shows you how to obtain data from the compass, accelerometer, and gyroscope sensors. For more information, see Sensors Overview for Windows Phone.
You will need to install Windows Phone Developer Tools 7.1 Beta to run this sample. To get started, go to the App Hub.
Caution: |
---|
Compass and gyroscope sensor data are not emulated on the Windows Phone Emulator. To view the data from these sensors, you should run the sample on a physical device that supports them. Accelerometer data can be viewed on the emulator by launching the application, clicking the Addition Tools button (“>>”) on the emulator toolbar, and selecting the Accelerometer tab. As you rotate the virtual device in the Additional Tools window, you will see the values on the Accelerometer page of the sample change accordingly. |