I donβt think Android emulators support the default acceleration sensor perfectly.
However, you can download SensorSimulator from Google, which allows you to use the mouse to display the data of the emulator with the Android emulator. Just follow the instructions on the website and you should be good to go.
Update (4/5/2016):
As Max kindly pointed out, the OpenStent SensorSimulator has moved here: http://github.com/openintents/sensorsimulator
In addition, some hardware emulation is now supported: http://tools.android.com/tips/hardware-emulation
source share