Sensors in android emulator?
I wanna create an app by using acceleration sensor.But I don't know how can I test it in emulator?
I don't think the Android emulators support the acceleration sensor nicely by default.
However, you can download SensorSimulator from Google, which lets you give the Android emulator simulated sensor data with the mouse. Just follow the instructions on the website and you should be good to go.
As Maks kindly pointed out, OpenIntents SensorSimulator has moved here: http://github.com/openintents/sensorsimulator
Additionally, some hardware emulation is now supported: http://tools.android.com/tips/hardware-emulation