locked
What are best practices for incorporating the use of sensors into my Metro style app?

All replies

  • 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 14, 2011 6:08 AM
  • You also may want to check out the video and slides from the "Using location & sensors in your app" session from //BUILD/:

    http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-781T 

    Wednesday, September 21, 2011 10:29 PM