The accelerometer reads the current force of acceleration acting on the phone on all 3 axes. this data is stored in 3d vector. while the phone is stationary, the only force of acceleration is gravity. so when the phone is still, the reading due to gravity whose magnitude is near 1.
In diagram, the blue screen represents the phone screen. the red arrow points top of the screen.
Accelerometer within the emulator:
- Use augmented reality (courtesy of Codeplex). Nikos Kastellano’s blog, Codeplex Download
- Use Maciej Grabek’s accelerometer plugin for the emulator. The Code Project, Original source
The Windows Phone 7 Accelerometer Simulator Kit helps developers test their Windows Phone 7 applications that use the accelerometer in the emulator. So if you don’t have a Windows Phone or don’t wan’t to be constantly deploying your app to one, this is perfect for you!
you can download WP7 accelerometer simulator kit here.