Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 306
user1391058 Avatar asked May 20 '12 20:05

user1391058


1 Answers

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

like image 57
Manath Avatar answered Oct 03 '22 20:10

Manath