Wednesday, September 14, 2011 3:24 AMOwnerFor more information on how to use the Windows.Devices.Sensors.Accelerometer API, see the Accelerometer sample in the Samples gallery.
Dan Reagan | Microsoft | Windows 8 Support
- Edited by Lisa_MSMicrosoft Employee, Moderator Wednesday, September 14, 2011 4:04 AM removed Q: and A:
Wednesday, September 14, 2011 6:08 AM
In addition to the Accelerometer, there are 6 other sensor classes to choose from, depending on the capabilities of your system: Compass, Gyrometer, Inclinometer, LightSensor, OrientationSensor and SimpleOrientationSensor. Samples for each of these sensor classes can be found in the Metro Style Apps gallery.
One best practice not currently shown in the samples is to always set the desired ReportInterval, whether registering an event listener or polling (especially when polling). This ensures that the sensor driver will produce data at the rate expected by your app.
Wednesday, September 21, 2011 10:29 PM
You also may want to check out the video and slides from the "Using location & sensors in your app" session from //BUILD/: