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.
Update (4/5/2016):
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With