Sensors in android emulator?

寵の児 提交于 2019-12-10 13:18:09

问题


I wanna create an app by using acceleration sensor.But I don't know how can I test it in emulator?


回答1:


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



来源:https://stackoverflow.com/questions/10677128/sensors-in-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!