http://code.google.com/p/openintents/wiki/SensorSimulator
SensorSimulator: simulate sensor on Android emulator.
November 10, 2010 | By Andro ID
The OpenIntents SensorSimulator lets you simulate sensor data with the mouse in real time. It currently supports accelerometer, compass, orientation, and temperature sensors, where the behavior can be customized through various settings.
http://code.google.com/p/openintents/wiki/SensorSimulator

http://code.google.com/p/openintents/wiki/SensorSimulator